Skip to content

Commit 24bd95b

Browse files
committed
Format code with black
1 parent 2040719 commit 24bd95b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

can/interfaces/usb2can/usb2canInterface.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
from can import BusABC, Message, CanInitializationError, CanOperationError
1010
from .usb2canabstractionlayer import Usb2CanAbstractionLayer, CanalMsg, CanalError
11-
from .usb2canabstractionlayer import flags_t, IS_ERROR_FRAME, IS_REMOTE_FRAME, IS_ID_TYPE
11+
from .usb2canabstractionlayer import (
12+
flags_t,
13+
IS_ERROR_FRAME,
14+
IS_REMOTE_FRAME,
15+
IS_ID_TYPE,
16+
)
1217
from .serial_selector import find_serial_devices
1318

1419
# Set up logging
@@ -92,7 +97,7 @@ def __init__(
9297
flags=0x00000008,
9398
*args,
9499
bitrate=500000,
95-
**kwargs
100+
**kwargs,
96101
):
97102

98103
self.can = Usb2CanAbstractionLayer(dll)

can/interfaces/usb2can/usb2canabstractionlayer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ def blocking_send(self, handle, msg, timeout) -> CanalError:
182182

183183
def blocking_receive(self, handle, msg, timeout) -> CanalError:
184184
with error_check("Blocking Receive Failed"):
185-
return CanalError(self.__m_dllBasic.CanalBlockingReceive(handle, msg, timeout))
185+
return CanalError(
186+
self.__m_dllBasic.CanalBlockingReceive(handle, msg, timeout)
187+
)
186188

187189
def get_status(self, handle, status) -> CanalError:
188190
with error_check("Get status failed"):

0 commit comments

Comments
 (0)