diff options
author | Ruben Vorderman <r.h.p.vorderman@lumc.nl> | 2024-06-15 18:46:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 18:46:39 (GMT) |
commit | 08d09cf5ba041c9c5c3860200b56bab66fd44a23 (patch) | |
tree | 8366fa5badaf1f9dbeecde4b79922abb06b19e1f /Misc/NEWS.d | |
parent | 31d1d72d7e24e0427df70f7dd14b9baff28a4f89 (diff) | |
download | cpython-08d09cf5ba041c9c5c3860200b56bab66fd44a23.zip cpython-08d09cf5ba041c9c5c3860200b56bab66fd44a23.tar.gz cpython-08d09cf5ba041c9c5c3860200b56bab66fd44a23.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-12-10-00-31.gh-issue-90425.5CfkKG.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-12-10-00-31.gh-issue-90425.5CfkKG.rst b/Misc/NEWS.d/next/Library/2024-06-12-10-00-31.gh-issue-90425.5CfkKG.rst new file mode 100644 index 0000000..d152af4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-12-10-00-31.gh-issue-90425.5CfkKG.rst @@ -0,0 +1,2 @@ +The OS byte in gzip headers is now always set to 255 when using +:func:`gzip.compress`. |