black: re-format
black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I944f1915ece753f72a3fa654902d445a9749d0f9
diff --git a/lib/wrap_utils.py b/lib/wrap_utils.py
index 231dff8..ebf4f61 100755
--- a/lib/wrap_utils.py
+++ b/lib/wrap_utils.py
@@ -7,10 +7,9 @@
"""
-def create_func_def_string(base_func_name,
- wrap_func_name,
- func_body_template,
- replace_dict):
+def create_func_def_string(
+ base_func_name, wrap_func_name, func_body_template, replace_dict
+):
r"""
Create and return a complete function definition as a string. The caller may run "exec" on the resulting
string to create the desired function.
@@ -41,10 +40,10 @@
func_def.insert(0, func_def_line)
# Make sure the replace_dict has a 'call_line'/call_line pair so that any '<call_line>' text gets
# replaced as intended.
- replace_dict['call_line'] = call_line
+ replace_dict["call_line"] = call_line
# Do the replacements.
for key, value in replace_dict.items():
func_def = [w.replace("<" + key + ">", value) for w in func_def]
- return '\n'.join(func_def) + "\n"
+ return "\n".join(func_def) + "\n"