This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients jonash, martin.panter, randombit
Date 2017-11-10.23:46:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Perhaps you can compress the tar file using the “gzip.GzipFile” class. It accepts a custom “mtime” parameter (see Issue 4272, added in 2.7 and 3.1+):

>>> gztar = BytesIO()
>>> tar = GzipFile(fileobj=gztar, mode="w", mtime=0)
>>>, mode="w|").close()
>>> tar.close()
>>> gztar.getvalue().hex()

However, “” accepts a “compresslevel” argument for two of the compressors, so you could argue it is okay to add another argument to pass to the gzip compressor.
Date User Action Args
2017-11-10 23:46:22martin.pantersetrecipients: + martin.panter, jonash, randombit
2017-11-10 23:46:22martin.pantersetmessageid: <>
2017-11-10 23:46:22martin.panterlinkissue31526 messages
2017-11-10 23:46:21martin.pantercreate