From 6a82aef05bf02a684669e69f0bb803fe9a909262 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 26 Jul 2026 17:42:42 +0200 Subject: scripts: various ruff fixes * ruff 0.16.0 * python 3.14.6 --- scripts/generate-alt-random-writes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scripts/generate-alt-random-writes.py') diff --git a/scripts/generate-alt-random-writes.py b/scripts/generate-alt-random-writes.py index 7ad1460c..bebe4b0e 100755 --- a/scripts/generate-alt-random-writes.py +++ b/scripts/generate-alt-random-writes.py @@ -7,7 +7,6 @@ import signal import struct import sys import termios - from typing import Any @@ -50,7 +49,6 @@ def main() -> None: def dummy(*args: Any) -> None: """Need a handler installed for sigwait() to trigger.""" _ = args - pass signal.signal(signal.SIGWINCH, dummy) while True: @@ -90,7 +88,7 @@ def main() -> None: width = 8 * cols # PGO help binary hardcodes cell width to 8px if lines is None or cols is None or height is None or width is None: - raise Exception('could not get terminal width/height; use --rows and --cols') + raise ValueError('could not get terminal width/height; use --rows and --cols') assert lines > 0, f'{lines}' assert cols > 0, f'{cols}' -- cgit v1.3