diff options
author | guoci <zguoci@gmail.com> | 2018-11-07 09:50:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-07 09:50:23 (GMT) |
commit | 0e7497cb469b003a45a4abe4105b81ef6d0c4002 (patch) | |
tree | 6c14770bf03a79d5e2ce008432309cfbddab858e /Misc | |
parent | d2b11af91560eaaeb499f702f4b0f244ec756280 (diff) | |
download | cpython-0e7497cb469b003a45a4abe4105b81ef6d0c4002.zip cpython-0e7497cb469b003a45a4abe4105b81ef6d0c4002.tar.gz cpython-0e7497cb469b003a45a4abe4105b81ef6d0c4002.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1615,6 +1615,7 @@ Monty Taylor Anatoly Techtonik Martin Teichmann Gustavo Temple +Guo Ci Teo Mikhail Terekhov Victor TerrĂ³n Pablo Galindo diff --git a/Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst b/Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst new file mode 100644 index 0000000..4c0a061 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst @@ -0,0 +1,2 @@ +Add `mtime` argument to `gzip.compress` for reproducible output. +Patch by Guo Ci Teo.
\ No newline at end of file |