Skip to content

Commit 2c70817

Browse files
author
Seth Kerr
committed
linting and formating
1 parent 9efec35 commit 2c70817

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

oakdevtech_icepython.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def __init__(self, spi, chip_sel, reset, filename=None):
5353
self._reset.value = True
5454
self._chip_sel.value = True
5555
try:
56-
self._file = io.open(filename, mode="rb")# pylint: disable=R1732
57-
except: # pylint: disable=W0133,W0702
58-
Exception("\nNo such file: ") # pylint: disable=W0702
56+
self._file = io.open(filename, mode="rb") # pylint: disable=R1732
57+
except: # pylint: disable=W0133,W0702
58+
Exception("\nNo such file: ") # pylint: disable=W0702
5959
finally:
6060
print("\nfinished init...")
6161

@@ -102,4 +102,7 @@ def program_fpga(self) -> None:
102102
self._spi.readinto(temp_buf)
103103
self._spi.unlock()
104104
else:
105-
raise Exception("No file contents '%d' size.." % (len(filecontents))) # pylint: disable=W0719,C0209
105+
raise Exception( # pylint: disable=W0719
106+
"No file contents '%d' size.." # pylint: disable=C0209
107+
% (len(filecontents))
108+
)

0 commit comments

Comments
 (0)