Skip to content

Commit 295c171

Browse files
committed
More formatting
1 parent 9426bc8 commit 295c171

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

PyPortal_Remote/code.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def openchannel(channel):
135135
response.close()
136136
print("OK")
137137
response = None
138-
except (ValueError, RuntimeError) as e:
138+
except (ValueError, RuntimeError):
139139
print("Probably worked")
140140
wifi.reset()
141141
response = None
@@ -223,13 +223,11 @@ def switchpage(tup):
223223
x = math.floor(p[0] / 80)
224224
y = abs(math.floor(p[1] / 80) - 2)
225225
index = 3 * x + y
226-
if (
227-
last_index == index
228-
): # Used to prevent the touchscreen sending incorrect results
226+
# Used to prevent the touchscreen sending incorrect results
227+
if last_index == index:
229228
if page[index]:
230-
if (
231-
page[index] == switchpage
232-
): # pylint: disable=comparison-with-callable
229+
# pylint: disable=comparison-with-callable
230+
if page[index] == switchpage:
233231
page, page_vals = switchpage(page_vals[index])
234232
else:
235233
page[index](page_vals[index])

0 commit comments

Comments
 (0)