]> 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>
Fri, 26 Feb 2021 01:13:17 +0000 (17:13 -0800)
committerGitHub <noreply@github.com>
Fri, 26 Feb 2021 01:13:17 +0000 (10:13 +0900)
commitadea9b86a97794ca75054603497c195d5ba39aa5
treedc28422f69f4c7ad72d50909aa683a9d4a711b84
parentf82578ace103ec977cec3424b20e0b5f19cf720e
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]