Skip to content

Commit e4ca06b

Browse files
committed
Undo more formatting
1 parent 8820fe8 commit e4ca06b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

adafruit_platformdetect/board.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ def _pi_id(self) -> Optional[str]:
215215
# Check for Pi boards:
216216
pi_rev_code = self._pi_rev_code()
217217
if pi_rev_code:
218-
from adafruit_platformdetect.revcodes import (
219-
PiDecoder,
220-
)
218+
from adafruit_platformdetect.revcodes import PiDecoder
221219

222220
try:
223221
decoder = PiDecoder(pi_rev_code)

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ def id(
6363

6464
# Special cases controlled by environment var
6565
if os.environ.get("BLINKA_FT232H"):
66-
from pyftdi.usbtools import (
67-
UsbTools,
68-
)
66+
from pyftdi.usbtools import UsbTools
6967

7068
# look for it based on PID/VID
7169
count = len(UsbTools.find_all([(0x0403, 0x6014)]))
@@ -77,9 +75,7 @@ def id(
7775
self._chip_id = chips.FT232H
7876
return self._chip_id
7977
if os.environ.get("BLINKA_FT2232H"):
80-
from pyftdi.usbtools import (
81-
UsbTools,
82-
)
78+
from pyftdi.usbtools import UsbTools
8379

8480
# look for it based on PID/VID
8581
count = len(UsbTools.find_all([(0x0403, 0x6010)]))

0 commit comments

Comments
 (0)