Skip to content

Commit 8f0a7e5

Browse files
committed
Formatting with black
1 parent 0fd66e0 commit 8f0a7e5

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

can/interfaces/socketcan/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ def find_available_interfaces() -> Iterable[str]:
6161
# output contains some lines like "1: vcan42: <NOARP,UP,LOWER_UP> ..."
6262
# extract the "vcan42" of each line
6363
interfaces = [line.split(": ", 3)[1] for line in output.splitlines()]
64-
log.debug("find_available_interfaces(): detected these interfaces (before filtering): %s", interfaces)
64+
log.debug(
65+
"find_available_interfaces(): detected these interfaces (before filtering): %s",
66+
interfaces,
67+
)
6568
return filter(_PATTERN_CAN_INTERFACE.match, interfaces)
6669

6770

can/io/blf.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,17 @@ def _parse_data(self, data):
286286
)
287287
elif obj_type == CAN_FD_MESSAGE:
288288
members = unpack_can_fd_msg(data, pos)
289-
channel, flags, dlc, can_id, _, _, fd_flags, valid_bytes, can_data = (
290-
members
291-
)
289+
(
290+
channel,
291+
flags,
292+
dlc,
293+
can_id,
294+
_,
295+
_,
296+
fd_flags,
297+
valid_bytes,
298+
can_data,
299+
) = members
292300
yield Message(
293301
timestamp=timestamp,
294302
arbitration_id=can_id & 0x1FFFFFFF,

0 commit comments

Comments
 (0)