Skip to content

Commit

Permalink
Reformat a few files with black
Browse files Browse the repository at this point in the history
Black appears to have changed it's mind about how some code should be
formatted.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Mar 27, 2022
1 parent 5015f83 commit fb33a88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion snekde/snekde.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ def sync(self):

def ping(self):
global snek_lock
#snek_debug('send PING')
# snek_debug('send PING')
snek_device.serial.write(b"\x14")
ret = self.dc4.wait(0.25)
return ret
Expand Down
4 changes: 2 additions & 2 deletions test/pass-op.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
exit(1)
if 2 * 3 + 4 != 10:
exit(1)
if 2 ** 3 ** 4 == 4096:
if 2**3**4 == 4096:
exit(1)
if (2 ** 3) ** 4 != 4096:
if (2**3) ** 4 != 4096:
exit(1)
if 7.8 // 2.2 != 3.0:
exit(1)
Expand Down
9 changes: 3 additions & 6 deletions test/pass-trailing-comma.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
64,
12,
)
assert (
math.sin(
1,
)
== math.sin(1)
)
assert math.sin(
1,
) == math.sin(1)

0 comments on commit fb33a88

Please sign in to comment.