Skip to content

Commit 6e87c68

Browse files
author
TJ Bruno
committed
Black & pylint
1 parent 37668ab commit 6e87c68

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

can/bus.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,11 @@ def __exit__(self, exc_type, exc_val, exc_tb):
439439
def __del__(self) -> None:
440440
try:
441441
if not self._is_shutdown:
442-
# We do some best-effort cleanup if the user forgot to properly close the bus instance
442+
# We do some best-effort cleanup if the user
443+
# forgot to properly close the bus instance
443444
self.shutdown()
444445
LOG.warning("%s was not properly shut down", self.__class__)
445-
except Exception as e:
446+
except Exception as e: # pylint: disable=W0703
446447
# Prevent unwanted output from being printed to stdout/stderr
447448
LOG.debug(e)
448449

test/test_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def constructor(request):
2323
@pytest.fixture
2424
def interface(constructor):
2525
with patch.object(constructor, "__init__", return_value=None):
26-
return constructor()
26+
return constructor()
2727

2828

2929
@patch.object(can.bus.BusABC, "shutdown")

0 commit comments

Comments
 (0)