]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Jun 2024 19:10:50 +0000 (21:10 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 19:10:50 +0000 (19:10 +0000)
commita19bb261a327e1008f219b62f6465941c981899b
tree852044786ae198b001217255a5d1d8ffb0abd0bb
parent3a9f438c923f6835fab608de65e44281e3f71b79
[3.13] gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486) (#120563)

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.
(cherry picked from commit 08d09cf5ba041c9c5c3860200b56bab66fd44a23)

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