Skip to content

Commit

Permalink
Make examples use f-strings now
Browse files Browse the repository at this point in the history
Resolve pylint build failure in unrelated example code
  • Loading branch information
michthom committed Sep 23, 2021
1 parent 3259adb commit e6ae5f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/busdevice_read_register_i2c_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
result = bytearray(1)
bus_device.readinto(result)

print("".join("{:02x}".format(x) for x in result))
print("".join([f"{x:02x} for x in result"]))
2 changes: 1 addition & 1 deletion examples/busdevice_read_register_spi_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
result = bytearray(1)
bus_device.readinto(result)

print("".join("{:02x}".format(x) for x in result))
print("".join([f"{x:02x} for x in result"]))

0 comments on commit e6ae5f7

Please sign in to comment.