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.

classification
标题: adding mtime option to gzip open()
类型: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
process
状态: open Resolution:
Dependencies: 后续:
分配给: 抄送列表: ellaellela
优先级: normal 关键字: patch

ellaellela2022-04-04 17:47 创建。最近一次由 admin2022-04-11 14:59 修改。

Pull Requests
URL Status Linked Edit
PR 32310 open ellaellela, 2022-04-04 17:48
Messages (1)
msg416685 - (view) Author: Marin M (ellaellela) * 日期: 2022-04-04 17:47
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.
历史
日期 用户 动作 参数
2022-04-11 14:59:58admin修改github: 91372
2022-04-04 17:48:26ellaellela修改keywords: + patch
stage: patch review
pull_requests: + pull_request30371
2022-04-04 17:47:01ellaellela创建