Skip to content

Commit 69e54cb

Browse files
committed
Corrected pylint reported formatting issues
whitespaces removed. = surrounded with spaces and removed redundant else:
1 parent 5d80f7e commit 69e54cb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

adafruit_platformdetect/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ def check_board_asset_tag_value(self):
133133
pass
134134

135135
return tag
136-
136+
137137
def check_board_name_value(self):
138138
"""
139139
Search /sys/devices/virtual/dmi/id for the device model and return its value, if found,
140140
otherwise None. Debian/ubuntu based
141141
"""
142142
board_name = None
143-
143+
144144
try:
145145
with open("/sys/devices/virtual/dmi/id/board_name", "r") as board_name_file:
146146
board_name = board_name_file.read().strip()
147147
except FileNotFoundError:
148148
pass
149-
149+
150150
return board_name

adafruit_platformdetect/board.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ def _udoo_id(self):
327327
if any(v == board_asset_tag for v in board_tags):
328328
return board_id
329329

330-
if self.detector.check_board_name_value() == 'UDOO x86':
330+
if self.detector.check_board_name_value() == "UDOO x86":
331331
return boards.UDOO_X86
332-
else:
333-
return None
332+
333+
return None
334334

335335
def _asus_tinker_board_id(self):
336336
"""Check what type of Tinker Board."""

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
RK3308 = "RK3308"
3232
LPC4330 = "LPC4330"
3333
RK3288 = "RK3288"
34-
PENTIUM_N3710="PENTIUM_N3710" # SOC Braswell core
34+
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
3535

3636
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2835", "BCM2837"}

0 commit comments

Comments
 (0)