Skip to content

Commit c85a8cb

Browse files
author
Benjamin Tissoires
committed
selftests/hid: run ruff format on the python part
We aim at syncing with the hid-tools repo on gitlab.freedesktop.org/libevdev/hid-tools. One of the commits is this mechanical formatting, so pull it over here so changes are not hidden by those. Reviewed-by: Peter Hutterer <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 1f988d0 commit c85a8cb

File tree

2 files changed

+325
-115
lines changed

2 files changed

+325
-115
lines changed

tools/testing/selftests/hid/tests/test_tablet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,9 +1228,9 @@ def move_to(self, pen, state, button, debug=True):
12281228
pen.current_state = state
12291229

12301230
def call_input_event(self, report):
1231-
if report[0] == 0x0a:
1231+
if report[0] == 0x0A:
12321232
# ensures the original second Eraser usage is null
1233-
report[1] &= 0xdf
1233+
report[1] &= 0xDF
12341234

12351235
# ensures the original last bit is equal to bit 6 (In Range)
12361236
if report[1] & 0x40:

0 commit comments

Comments
 (0)