[New-bugs-announce] [issue47216] adding mtime option to gzip open()

Marin M report at bugs.python.org
Mon Apr 4 13:47:01 EDT 2022


New submission from Marin M <pfobos at gmail.com>:

init of class GzipFile has mtime as an optional argument, but open() function does not.

When using open(), mtime will always be set to the current time and so far there was no way of fixing it to a specific timestamp.

In case two people would tar.gz the same file and take its sha, the shas would be different. With an option to fix the mtime, they could have a unique sha.

PR containing code change and the tests is already ready.

----------
components: Library (Lib)
messages: 416685
nosy: ellaellela
priority: normal
severity: normal
status: open
title: adding mtime option to gzip open()
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47216>
_______________________________________


More information about the New-bugs-announce mailing list