]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43316: gzip: CLI uses non-zero return code on error. (GH-24647)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Feb 2021 11:52:11 +0000 (03:52 -0800)
committerGitHub <noreply@github.com>
Thu, 25 Feb 2021 11:52:11 +0000 (03:52 -0800)
commit69906c505b139cbd892866dbceeb607eff53ab3b
tree0948a164113b6df59945181cc1d056fc41d3472b
parent2a9e6ab6adc82713e43cdf0aed09557d0d63e3bb
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.
(cherry picked from commit cc3df6368d4f3f6c9c9b716876c7e7b79c7abf3f)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
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]