python: reformat using black
Code cannot currently be submitted to this repo because it fails
in the unit-test phase. Attempt to reformat the code using `black`
to hopefully make pycodestyle happier.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I17aa506471ceade224bcab5b2fa0dc8cd7a88c0a
diff --git a/pysystemmgr/obmc/system/__init__.py b/pysystemmgr/obmc/system/__init__.py
index 7bcea9e..2d5b752 100644
--- a/pysystemmgr/obmc/system/__init__.py
+++ b/pysystemmgr/obmc/system/__init__.py
@@ -18,9 +18,9 @@
def convertGpio(name):
- offset = int(''.join(list(filter(str.isdigit, name))))
+ offset = int("".join(list(filter(str.isdigit, name))))
port = list(filter(str.isalpha, name.upper()))
- a = ord(port[-1]) - ord('A')
+ a = ord(port[-1]) - ord("A")
if len(port) > 1:
a += 26
base = a * 8 + GPIO_BASE