]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-75707: tarfile: Add optional open() argument "mtime" (GH-138117)
authorAmp Tell <ampleyfly@users.noreply.github.com>
Fri, 1 May 2026 22:39:58 +0000 (00:39 +0200)
committerGitHub <noreply@github.com>
Fri, 1 May 2026 22:39:58 +0000 (15:39 -0700)
commitbb911a2319365a4155e7398b4b7978589d8bed49
tree4361f92397b45397d46d351bd09e8e3fa76514ad
parent91e871a3077ca44cd65e966a4fead5410074506b
gh-75707: tarfile: Add optional open() argument "mtime" (GH-138117)

This makes it possible to set the gzip header mtime field without
overriding time.time(), making it useful when creating reproducible
archives.

* ðŸ“œðŸ¤– Added by blurb_it.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Doc/library/tarfile.rst
Lib/tarfile.py
Lib/test/test_tarfile.py
Misc/NEWS.d/next/Library/2025-08-24-15-09-30.gh-issue-75707.GOWZrC.rst [new file with mode: 0644]