]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486)
authorRuben Vorderman <r.h.p.vorderman@lumc.nl>
Sat, 15 Jun 2024 18:46:39 +0000 (20:46 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 18:46:39 +0000 (18:46 +0000)
commit08d09cf5ba041c9c5c3860200b56bab66fd44a23
tree8366fa5badaf1f9dbeecde4b79922abb06b19e1f
parent31d1d72d7e24e0427df70f7dd14b9baff28a4f89
gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486)

This matches the output behavior in 3.10 and earlier; the optimization in 3.11 allowed the zlib library's "os" value to be filled in instead in the circumstance when mtime was 0.  this keeps things consistent.
Doc/library/gzip.rst
Lib/gzip.py
Lib/test/test_gzip.py
Misc/NEWS.d/next/Library/2024-06-12-10-00-31.gh-issue-90425.5CfkKG.rst [new file with mode: 0644]