Skip to content

Commit f9c2828

Browse files
committed
refactored to satisfy pylint
1 parent 7865271 commit f9c2828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _parse_dns_response(
140140
return -1
141141
# Validate flags
142142
flags = int.from_bytes(self._pkt_buf[2:4], "l")
143-
if not (flags == 0x8180 or flags == 0x8580):
143+
if not flags in (0x8180, 0x8580):
144144
if self._debug:
145145
print("* DNS ERROR: Invalid flags, ", flags)
146146
return -1

0 commit comments

Comments
 (0)