Skip to content

Commit 52a2aab

Browse files
committed
Reformat code by black
1 parent dbc95d1 commit 52a2aab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

can/interfaces/gs_usb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _recv_internal(
9090
msg = can.Message()
9191
msg.arbitration_id = frame.arbitration_id
9292
msg.dlc = frame.can_dlc
93-
msg.data = bytearray(frame.data)[0:msg.dlc]
93+
msg.data = bytearray(frame.data)[0 : msg.dlc]
9494
msg.timestamp = frame.timestamp
9595
msg.channel = self.channel_info
9696
msg.is_extended_id = frame.is_extended_id

doc/interfaces/gs_usb.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.. _gs_usb:
22

33
CAN driver based on WCID for Geschwister Schneider USB/CAN devices and bytewerk.org candleLight USB CAN interfaces
4-
========================
4+
==================================================================================================================
55

66
Windows/Linux/Mac CAN driver based on WCID for Geschwister Schneider USB/CAN devices and candleLight USB CAN interfaces.
77

88
Install: ``pip install "python-can[gs_usb]"``
9+
910
Usage: pass ``bus`` and ``address`` to open the device. The parameters can be got by ``pyusb``
1011

1112

@@ -20,7 +21,7 @@ Supported platform
2021

2122
Windows, Linux and Mac.
2223

23-
Note: Since ``pyusb``` is used, ``libusb-win32`` usb driver is required to install in Windows
24+
Note: Since ``pyusb`` is used, ``libusb-win32`` usb driver is required to be installed in Windows
2425

2526
Bus
2627
---

0 commit comments

Comments
 (0)