Skip to content

Commit 0b8cc7f

Browse files
committed
re-enable pylint check. Try fix by setting result to variable.
1 parent 0e7d9b9 commit 0b8cc7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_pn532/adafruit_pn532.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class BusyError(Exception):
185185
class PN532:
186186
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
187187

188-
# pylint: disable=pointless-statement
189188
def __init__(self, *, debug=False, reset=None):
190189
"""Create an instance of the PN532 class
191190
"""
@@ -197,11 +196,11 @@ def __init__(self, *, debug=False, reset=None):
197196

198197
try:
199198
self._wakeup()
200-
self.firmware_version # first time often fails, try 2ce
199+
_ = self.firmware_version # first time often fails, try 2ce
201200
return
202201
except (BusyError, RuntimeError):
203202
pass
204-
self.firmware_version
203+
_ = self.firmware_version
205204

206205
def _read_data(self, count):
207206
# Read raw data from device, not including status bytes:

0 commit comments

Comments
 (0)