summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorguoci <zguoci@gmail.com>2018-11-07 09:50:23 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-07 09:50:23 (GMT)
commit0e7497cb469b003a45a4abe4105b81ef6d0c4002 (patch)
tree6c14770bf03a79d5e2ce008432309cfbddab858e /Misc
parentd2b11af91560eaaeb499f702f4b0f244ec756280 (diff)
downloadcpython-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/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2018-10-04-17-23-43.bpo-34898.Wo2PoJ.rst2
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 89fb0c7..aba6094 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -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