8000 Format code with black · hardbyte/python-can@82843ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 82843ea

Browse files
committed
Format code with black
1 parent 8487a2e commit 82843ea

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

can/interfaces/canalystii.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,17 @@ def __init__(
4444
self.rx_queue = collections.deque(maxlen=rx_queue_size)
4545

4646
if bitrate is None and Timing0 is None and Timing1 is None:
47-
raise ValueError("Either bitrate or both Timing0 and Timing1 must be specified")
47+
raise ValueError(
48+
"Either bitrate or both Timing0 and Timing1 must be specified"
49+
)
4850
if bitrate is None and (Timing0 is None or Timing1 is None):
49-
raise ValueError("If bitrate is not set then both Timing0 and Timing1 must be set")
51+
raise ValueError(
52+
"If bitrate is not set then both Timing0 and Timing1 must be set"
53+
)
5054
if bitrate is not None and (Timing0 is not None or Timing1 is not None):
51-
raise ValueError("If bitrate is set then Timing0 and Timing1 must not be set")
55+
raise ValueError(
56+
"If bitrate is set then Timing0 and Timing1 must not be set"
57+
)
5258

5359
self.channel_info = "CANalyst-II: device {}, channels {}".format(
5460
device, self.channels

0 commit comments

Comments
 (0)
0