diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-26 02:36:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 02:36:27 (GMT) |
commit | 540749ed6d8e29a11368bc7f343baf7b7ea7e4a8 (patch) | |
tree | 77c2a2aeb437fe41718d5bbafc8c5b6c3e115a97 /Lib/gzip.py | |
parent | adea9b86a97794ca75054603497c195d5ba39aa5 (diff) | |
download | cpython-540749ed6d8e29a11368bc7f343baf7b7ea7e4a8.zip cpython-540749ed6d8e29a11368bc7f343baf7b7ea7e4a8.tar.gz cpython-540749ed6d8e29a11368bc7f343baf7b7ea7e4a8.tar.bz2 |
bpo-43316: gzip: Fix sys.exit() usage. (GH-24652)
(cherry picked from commit 9525a18b5bb317d9fb206c992ab62aa41559b0c8)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 8002b43..ee0cbed 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -583,7 +583,7 @@ def main(): g = sys.stdout.buffer else: if arg[-3:] != ".gz": - sys.exit("filename doesn't end in .gz:", repr(arg)) + sys.exit(f"filename doesn't end in .gz: {arg!r}") f = open(arg, "rb") g = builtins.open(arg[:-3], "wb") else: |