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 /tools/f64_diff.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 'tools/f64_diff.py')
| -rw-r--r-- | tools/f64_diff.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/f64_diff.py b/tools/f64_diff.py index 340f3d106..4a53cccd5 100644 --- a/tools/f64_diff.py +++ b/tools/f64_diff.py | |||
| @@ -803,4 +803,8 @@ def main(argv=None): | |||
| 803 | 803 | ||
| 804 | 804 | ||
| 805 | if __name__ == "__main__": | 805 | if __name__ == "__main__": |
| 806 | try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode | ||
| 807 | sys.stdout.reconfigure(errors="replace") | ||
| 808 | except (AttributeError, ValueError, OSError): | ||
| 809 | pass | ||
| 806 | sys.exit(main()) | 810 | sys.exit(main()) |