Skip to content

Commit 536d3da

Browse files
committed
Fix formating and indentation errors
1 parent ce37e43 commit 536d3da

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

adafruit_platformdetect/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ def get_armbian_release_field(self, field):
7373
pass
7474

7575
return field_value
76-
76+
7777
def get_device_model(self):
7878
"""
7979
Search /proc/device-tree/model for the device model and return its value, if found,
8080
otherwise None.
8181
"""
8282
try:
83-
with open('/proc/device-tree/model', 'r') as model_file:
84-
model = model_file.read()
85-
return model
83+
with open('/proc/device-tree/model', 'r') as model_file:
84+
model = model_file.read()
85+
return model
8686
except FileNotFoundError:
87-
pass
87+
pass

adafruit_platformdetect/board.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _armbian_id(self):
310310
if board_value == "orangepipc":
311311
return ORANGE_PI_PC
312312
return None
313-
313+
314314
def _sama5_id(self):
315315
"""Check what type sama5 board."""
316316
board_value = self.detector.get_device_model()
@@ -337,7 +337,7 @@ def any_beaglebone(self):
337337
def any_orange_pi(self):
338338
"""Check whether the current board is any defined Orange Pi."""
339339
return self.ORANGE_PI_PC
340-
340+
341341
@property
342342
def any_giant_board(self):
343343
return self.GIANT_BOARD

0 commit comments

Comments
 (0)