diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-07-26 15:42:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-07-26 15:42:42 +0000 |
| commit | 6a82aef05bf02a684669e69f0bb803fe9a909262 (patch) | |
| tree | 8541902ccf94451db6425ba2fd3fef5bb4ca8044 /scripts/generate-alt-random-writes.py | |
| parent | ime: refresh search matches after IME commit (diff) | |
scripts: various ruff fixes
* ruff 0.16.0
* python 3.14.6
Diffstat (limited to 'scripts/generate-alt-random-writes.py')
| -rwxr-xr-x | scripts/generate-alt-random-writes.py | 4 |
1 files changed, 1 insertions, 3 deletions
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}' |
