tools: fix ruff format for libinput-replay

Fixes: 89c2f29d2c ("tools/libinput-replay: Warn if writing to local-overrides fails")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1272>
This commit is contained in:
Peter Hutterer 2025-07-15 16:26:26 +10:00
parent 7e98f2f2d2
commit 79ea713aa3

View file

@ -340,7 +340,9 @@ def setup_quirks(recording):
try:
with overrides.open("w+") as fd:
fd.write("# This file was generated by libinput replay\n")
fd.write("# Unless libinput replay is running right now, remove this file.\n")
fd.write(
"# Unless libinput replay is running right now, remove this file.\n"
)
fd.write("\n\n".join(quirks))
except IOError:
error("Warning: Couldn't write to {}, please re-run as root".format(overrides))