Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-112346: Always set OS byte to 255, simpler gzip.compress function. #120486

Merged
merged 19 commits into from
Jun 15, 2024

Conversation

rhpvorderman
Copy link
Contributor

@rhpvorderman rhpvorderman commented Jun 14, 2024

Doc/library/gzip.rst Outdated Show resolved Hide resolved
Doc/library/gzip.rst Outdated Show resolved Hide resolved
Lib/gzip.py Show resolved Hide resolved
Lib/test/test_gzip.py Outdated Show resolved Hide resolved
@rhpvorderman
Copy link
Contributor Author

Thanks for the comments @serhiy-storchaka . They have been addressed.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gpshead gpshead added the needs backport to 3.13 bugs and security fixes label Jun 14, 2024
Lib/gzip.py Show resolved Hide resolved
@gpshead gpshead enabled auto-merge (squash) June 15, 2024 18:33
@gpshead gpshead self-assigned this Jun 15, 2024
@gpshead gpshead merged commit 08d09cf into python:main Jun 15, 2024
33 checks passed
@miss-islington-app
Copy link

Thanks @rhpvorderman for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2024
…ction. (pythonGH-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 08d09cf)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
@bedevere-app
Copy link

bedevere-app bot commented Jun 15, 2024

GH-120563 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jun 15, 2024
gpshead pushed a commit that referenced this pull request Jun 15, 2024
…nction. (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 08d09cf)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…ction. (pythonGH-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.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…ction. (pythonGH-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.
@rhpvorderman rhpvorderman deleted the gh-112346_2 branch July 15, 2024 14:23
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…ction. (pythonGH-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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants