Skip to content

Commit 6b69820

Browse files
committed
"Reformatted per new black version"
1 parent d4fdac8 commit 6b69820

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

adafruit_mcp2515/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def deinit_filtering_registers(self):
761761
######## CANIO API METHODS #############
762762
@property
763763
def baudrate(self):
764-
""" The baud rate (read-only)"""
764+
"""The baud rate (read-only)"""
765765
return self._baudrate
766766

767767
@property
@@ -795,7 +795,7 @@ def bus_off_state_count(self):
795795

796796
@property
797797
def state(self): # State
798-
"""The current state of the bus. (read-only) """
798+
"""The current state of the bus. (read-only)"""
799799
self._get_bus_status()
800800
return self._bus_state
801801

adafruit_mcp2515/canio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __exit__(self, unused1, unused2, unused3):
154154

155155

156156
class BusState:
157-
"""The state of the CAN bus """
157+
"""The state of the CAN bus"""
158158

159159
ERROR_ACTIVE = 0
160160
"""The bus is in the normal (active) state"""

examples/mcp2515_canio_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
def builtin_bus_factory():
2525
return CAN(rx=CAN_RX, tx=CAN_TX, baudrate=1000000, loopback=True)
2626

27-
2827
except ImportError as e:
2928
print("no native canio, trying mcp")
3029
from digitalio import DigitalInOut

0 commit comments

Comments
 (0)