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.
Change-Id: If1010ead857d41364c024bf8145a979a9377d382
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/lib/firmware_utils.py b/lib/firmware_utils.py
index 959693d..61d1e0b 100755
--- a/lib/firmware_utils.py
+++ b/lib/firmware_utils.py
@@ -61,15 +61,17 @@
"""
- cmd_buf = "hdparm -I " + device + " | egrep \":.+\" | sed -re" +\
- " \"s/[ \t]+/ /g\""
+ cmd_buf = (
+ "hdparm -I " + device + ' | egrep ":.+" | sed -re' + ' "s/[ \t]+/ /g"'
+ )
stdout, stderr, rc = bsu.os_execute_command(cmd_buf)
firmware_dict = vf.key_value_outbuf_to_dict(stdout)
cmd_buf = "lsblk -P " + device + " | sed -re 's/\" /\"\\n/g'"
stdout, stderr, rc = bsu.os_execute_command(cmd_buf)
- firmware_dict.update(vf.key_value_outbuf_to_dict(stdout, delim='=',
- strip=" \""))
+ firmware_dict.update(
+ vf.key_value_outbuf_to_dict(stdout, delim="=", strip=' "')
+ )
return firmware_dict