]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
authorRuben Vorderman <r.h.p.vorderman@lumc.nl>
Thu, 25 Feb 2021 11:30:24 +0000 (12:30 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Feb 2021 11:30:24 +0000 (20:30 +0900)
commitcc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f
tree6a598c147f5595f16b665a88cad789ca8fcf5742
parent70f8ebe503fc7748db9b0c51cfbba20b1846a3c8
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.
Lib/gzip.py
Lib/test/test_gzip.py
Misc/NEWS.d/next/Library/2021-02-25-09-44-36.bpo-43316.k9Gyqn.rst [new file with mode: 0644]