Skip to content

Commit 0557d12

Browse files
committed
Format code
1 parent ee20fdd commit 0557d12

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

can/interfaces/slcan.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99
import logging
1010

1111
from can import BusABC, Message
12-
from ..exceptions import CanInterfaceNotImplementedError, CanInitializationError, CanOperationError, error_check
12+
from ..exceptions import (
13+
CanInterfaceNotImplementedError,
14+
CanInitializationError,
15+
CanOperationError,
16+
error_check,
17+
)
1318
from can import typechecking
1419

1520

@@ -153,7 +158,9 @@ def _read(self, timeout: Optional[float]) -> Optional[str]:
153158
# if we still don't have a complete message, do a blocking read
154159
start = time.time()
155160
time_left = timeout
156-
while not (ord(self._OK) in self._buffer or ord(self._ERROR) in self._buffer):
161+
while not (
162+
ord(self._OK) in self._buffer or ord(self._ERROR) in self._buffer
163+
):
157164
self.serialPortOrig.timeout = time_left
158165
byte = self.serialPortOrig.read()
159166
if byte:

0 commit comments

Comments
 (0)