]> granicus.if.org Git - python/commit
bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704)
authorguoci <zguoci@gmail.com>
Wed, 7 Nov 2018 09:50:23 +0000 (04:50 -0500)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 7 Nov 2018 09:50:23 +0000 (11:50 +0200)
commit0e7497cb469b003a45a4abe4105b81ef6d0c4002
tree6c14770bf03a79d5e2ce008432309cfbddab858e
parentd2b11af91560eaaeb499f702f4b0f244ec756280
bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704)

Without setting mtime, time.time() will be used as the timestamp which will
end up in the compressed data and each invocation of the compress() function
will vary over time.
Doc/library/gzip.rst
Doc/whatsnew/3.8.rst
Lib/gzip.py
Lib/test/test_gzip.py
Misc/ACKS
Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst [new file with mode: 0644]