Skip to content

Commit f5bc539

Browse files
authored
Merge pull request #18 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents 499e8d4 + cd006d3 commit f5bc539

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

adafruit_bluefruitspi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
from adafruit_bus_device.spi_device import SPIDevice
5252
from micropython import const
5353

54-
# pylint: disable=bad-whitespace
5554
_MSG_COMMAND = const(0x10) # Command message
5655
_MSG_RESPONSE = const(0x20) # Response message
5756
_MSG_ALERT = const(0x40) # Alert message
@@ -84,8 +83,6 @@
8483
_PACKET_BUTTON_LEN = const(5)
8584
_PACKET_COLOR_LEN = const(6)
8685

87-
# pylint: enable=bad-whitespace
88-
8986

9087
class BluefruitSPI:
9188
"""Helper for the Bluefruit LE SPI Friend"""
@@ -250,7 +247,7 @@ def command(self, string):
250247
return rsp
251248
raise RuntimeError("Unknown response (id:{0})".format(hex(msgid)))
252249
except RuntimeError as error:
253-
raise RuntimeError("AT command failure: " + repr(error))
250+
raise RuntimeError("AT command failure: " + repr(error)) from error
254251

255252
def command_check_OK(self, command, delay=0.0): # pylint: disable=invalid-name
256253
"""Send a fully formed bytestring AT command, and check

examples/bluefruitspi_neocolorpicker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import busio
66
import board
77
from digitalio import DigitalInOut
8-
from adafruit_bluefruitspi import BluefruitSPI
98
import neopixel
9+
from adafruit_bluefruitspi import BluefruitSPI
1010

1111
ADVERT_NAME = b"BlinkaNeoLamp"
1212

0 commit comments

Comments
 (0)