Skip to content

Commit 8ae1012

Browse files
authored
Merge pull request #21 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents 08066a6 + 18e9648 commit 8ae1012

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
__version__ = "0.0.0-auto.0"
5454
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k.git"
5555

56-
# pylint: disable=bad-whitespace
5756

5857
# Wiznet5k Registers
5958
REG_MR = const(0x0000) # Mode
@@ -124,7 +123,6 @@
124123
SNMR_MACRAW = const(0x04)
125124
SNMR_PPPOE = const(0x05)
126125

127-
# pylint: enable=bad-whitespace
128126
MAX_PACKET = const(4000)
129127
LOCAL_PORT = const(0x400)
130128
# Default hardware MAC address

adafruit_wiznet5k/adafruit_wiznet5k_dhcp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
3737
from adafruit_wiznet5k.adafruit_wiznet5k_socket import htonl, htons
3838

39-
# pylint: disable=bad-whitespace
4039

4140
# DHCP State Machine
4241
STATE_DHCP_START = const(0x00)
@@ -87,7 +86,6 @@
8786
OPT_END = 255
8887

8988

90-
# pylint: enable=bad-whitespace
9189
_BUFF = bytearray(317)
9290

9391

adafruit_wiznet5k/adafruit_wiznet5k_dns.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
3737
from adafruit_wiznet5k.adafruit_wiznet5k_socket import htons
3838

39-
# pylint: disable=bad-whitespace
4039

4140
QUERY_FLAG = const(0x00)
4241
OPCODE_STANDARD_QUERY = const(0x00)
@@ -54,7 +53,6 @@
5453
INVALID_RESPONSE = const(-4)
5554

5655
DNS_PORT = const(0x35) # port used for DNS request
57-
# pylint: enable=bad-whitespace
5856

5957

6058
class DNS:

adafruit_wiznet5k/adafruit_wiznet5k_socket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ def htons(x):
5858
return (((x) << 8) & 0xFF00) | (((x) >> 8) & 0xFF)
5959

6060

61-
# pylint: disable=bad-whitespace
6261
SOCK_STREAM = const(0x21) # TCP
6362
TCP_MODE = 80
6463
SOCK_DGRAM = const(0x02) # UDP
6564
AF_INET = const(3)
6665
NO_SOCKET_AVAIL = const(255)
67-
# pylint: enable=bad-whitespace
6866

6967
# keep track of sockets we allocate
7068
SOCKETS = []

examples/wiznet5k_aio_post.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import board
33
import busio
44
from digitalio import DigitalInOut
5+
import adafruit_requests as requests
56
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
67
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
7-
import adafruit_requests as requests
88

99
# Get Adafruit.io details from a secrets.py file
1010
try:

examples/wiznet5k_cheerlights.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import busio
44
from digitalio import DigitalInOut
55

6-
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
7-
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
86
import adafruit_requests as requests
97

108
import neopixel
119
import adafruit_fancyled.adafruit_fancyled as fancy
10+
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
11+
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket
1212

1313
cs = DigitalInOut(board.D10)
1414
spi_bus = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
@@ -51,7 +51,7 @@
5151
raise AssertionError(
5252
"Failed to resolve hostname, \
5353
please check your router's DNS configuration."
54-
)
54+
) from error
5555
continue
5656
if not value:
5757
continue

0 commit comments

Comments
 (0)