diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:25:51 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:25:51 -0500 |
| commit | 7dbaa0409ab5e4830076014d75f2e0f6ef4f36d2 (patch) | |
| tree | fbf9dfdef96de4fa5bf48af75ef499cce5cd63db /scripts/check_apt_key.py | |
| parent | 2e52b2f1d77ca37e5a4cb9136a488ae2537bba5d (diff) | |
Repo rules after round 44: stdout guards on 13 programs, newline= on four text writes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/check_apt_key.py')
| -rw-r--r-- | scripts/check_apt_key.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/check_apt_key.py b/scripts/check_apt_key.py index 4a773d4d7..160f0203a 100644 --- a/scripts/check_apt_key.py +++ b/scripts/check_apt_key.py | |||
| @@ -86,4 +86,8 @@ def main(argv): | |||
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | if __name__ == "__main__": | 88 | if __name__ == "__main__": |
| 89 | try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode | ||
| 90 | sys.stdout.reconfigure(errors="replace") | ||
| 91 | except (AttributeError, ValueError, OSError): | ||
| 92 | pass | ||
| 89 | sys.exit(main(sys.argv[1:])) | 93 | sys.exit(main(sys.argv[1:])) |