From 301895685e140f7bb46ef8938432b2d1cc57551f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 18 Mar 2024 12:29:46 +1000 Subject: [PATCH] tools: fix two black warnings Part-of: --- tools/libinput-analyze-recording.py | 2 +- tools/libinput-replay.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libinput-analyze-recording.py b/tools/libinput-analyze-recording.py index ff7674d0..b9ae3193 100755 --- a/tools/libinput-analyze-recording.py +++ b/tools/libinput-analyze-recording.py @@ -110,7 +110,7 @@ def main(argv): device = yml["devices"][0] if not device["events"]: - print(f"No events found in recording") + print("No events found in recording") sys.exit(1) def events(): diff --git a/tools/libinput-replay.py b/tools/libinput-replay.py index 1a8fe700..c24cb8ca 100755 --- a/tools/libinput-replay.py +++ b/tools/libinput-replay.py @@ -171,7 +171,7 @@ def print_events(devnode, indent, evs): def collect_events(frame): evs = [] events_skipped = False - for (sec, usec, evtype, evcode, value) in frame: + for sec, usec, evtype, evcode, value in frame: if evtype == libevdev.EV_KEY.value and value == 2: # key repeat events_skipped = True continue