Skip to content

Commit 3f04abb

Browse files
authored
Merge pull request #33 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents c05ae62 + 65105a5 commit 3f04abb

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

adafruit_mcp230xx/digital_inout.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def pull(self):
112112
try:
113113
if _get_bit(self._mcp.gppu, self._pin):
114114
return digitalio.Pull.UP
115-
except AttributeError:
115+
except AttributeError as error:
116116
# MCP23016 doesn't have a `gppu` register.
117-
raise ValueError("Pull-up/pull-down resistors not supported.")
117+
raise ValueError("Pull-up/pull-down resistors not supported.") from error
118118
return None
119119

120120
@pull.setter
@@ -128,6 +128,6 @@ def pull(self, val):
128128
raise ValueError("Pull-down resistors are not supported!")
129129
else:
130130
raise ValueError("Expected UP, DOWN, or None for pull state!")
131-
except AttributeError:
131+
except AttributeError as error:
132132
# MCP23016 doesn't have a `gppu` register.
133-
raise ValueError("Pull-up/pull-down resistors not supported.")
133+
raise ValueError("Pull-up/pull-down resistors not supported.") from error

adafruit_mcp230xx/mcp23008.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
__version__ = "0.0.0-auto.0"
2020
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
2121

22-
# pylint: disable=bad-whitespace
2322
_MCP23008_ADDRESS = const(0x20)
2423
_MCP23008_IODIR = const(0x00)
2524
_MCP23008_IPOL = const(0x01)

adafruit_mcp230xx/mcp23016.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
__version__ = "0.0.0-auto.0"
2828
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
2929

30-
# pylint: disable=bad-whitespace
3130
_MCP23016_ADDRESS = const(0x20)
3231
_MCP23016_GPIO0 = const(0x00)
3332
_MCP23016_GPIO1 = const(0x01)

adafruit_mcp230xx/mcp23017.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
__version__ = "0.0.0-auto.0"
2020
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx.git"
2121

22-
# pylint: disable=bad-whitespace
2322
_MCP23017_ADDRESS = const(0x20)
2423
_MCP23017_IODIRA = const(0x00)
2524
_MCP23017_IODIRB = const(0x01)

0 commit comments

Comments
 (0)