]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125260: Change the default ``gzip.compress()`` mtime to 0 (#125261)
authorBernhard M. Wiedemann <githubbmwprimary@lsmod.de>
Sat, 12 Oct 2024 17:18:48 +0000 (19:18 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 17:18:48 +0000 (18:18 +0100)
commitdcd58c50844dae0d83517e88518a677914ea594b
tree1918fad5b50a7bb51ce47fc407ed25255f71d70a
parent9944ad388c457325456152257b977410c4ec3593
gh-125260: Change the default ``gzip.compress()`` mtime to 0 (#125261)

This follows GNU gzip, which defaults to using 0 as the mtime
for compressing stdin, where no file mtime is involved.

This makes the output of gzip.compress() deterministic by default,
greatly helping reproducible builds.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/library/gzip.rst
Lib/gzip.py
Lib/test/test_gzip.py
Misc/NEWS.d/next/Library/2024-10-11-04-04-38.gh-issue-125260.PeZ0Mb.rst [new file with mode: 0644]