diff options
author | Guido van Rossum <guido@python.org> | 2024-03-29 18:31:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 18:31:09 (GMT) |
commit | 94c97423a9c4969f8ddd4a3aa4aacb99c4d5263d (patch) | |
tree | 2158c408750f37bd4a1ace1c3735cf5358f1b495 /Tools/scripts | |
parent | 5d21d884b6ffa45dac50a5f9a07c41356a8478b4 (diff) | |
download | cpython-94c97423a9c4969f8ddd4a3aa4aacb99c4d5263d.zip cpython-94c97423a9c4969f8ddd4a3aa4aacb99c4d5263d.tar.gz cpython-94c97423a9c4969f8ddd4a3aa4aacb99c4d5263d.tar.bz2 |
Fix broken format in error for bad input in summarize_stats.py (#117375)
When you pass the script a non-existent input file, you get a TypeError instead of the intended ValueError.
Diffstat (limited to 'Tools/scripts')
-rw-r--r-- | Tools/scripts/summarize_stats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index d40106b..8dc590b 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -114,7 +114,7 @@ def load_raw_data(input: Path) -> RawData: return data else: - raise ValueError(f"{input:r} is not a file or directory path") + raise ValueError(f"{input} is not a file or directory path") def save_raw_data(data: RawData, json_output: TextIO): |