diff options
author | Ruben Vorderman <r.h.p.vorderman@lumc.nl> | 2021-02-25 11:30:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 11:30:24 (GMT) |
commit | cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f (patch) | |
tree | 6a598c147f5595f16b665a88cad789ca8fcf5742 /Misc | |
parent | 70f8ebe503fc7748db9b0c51cfbba20b1846a3c8 (diff) | |
download | cpython-cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f.zip cpython-cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f.tar.gz cpython-cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f.tar.bz2 |
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-02-25-09-44-36.bpo-43316.k9Gyqn.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-02-25-09-44-36.bpo-43316.k9Gyqn.rst b/Misc/NEWS.d/next/Library/2021-02-25-09-44-36.bpo-43316.k9Gyqn.rst new file mode 100644 index 0000000..1f0d3c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-02-25-09-44-36.bpo-43316.k9Gyqn.rst @@ -0,0 +1,3 @@ +The ``python -m gzip`` command line application now properly fails when +detecting an unsupported extension. It exits with a non-zero exit code and +prints an error message to stderr. |