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.
This commit is contained in:
guoci 2018-11-07 04:50:23 -05:00 committed by Serhiy Storchaka
parent d2b11af915
commit 0e7497cb46
6 changed files with 27 additions and 4 deletions

View file

@ -1615,6 +1615,7 @@ Monty Taylor
Anatoly Techtonik
Martin Teichmann
Gustavo Temple
Guo Ci Teo
Mikhail Terekhov
Victor Terrón
Pablo Galindo