-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set timestamp in gzip stream #48522
Comments
The gzip header defined in RFC 1952 includes a mandatory "MTIME" field, The Python gzip module always sets the MTIME field to the current time, I'm attaching a patch which adds an optional "mtime" argument to the In order to facilitate testing, the patch also includes code to set the If anyone has any further suggestions, I'd be delighted to submit a new Thanks! Jacques |
This discussion of the problem and possible workarounds might also be of http://stackoverflow.com/questions/264224/setting-the-gzip-timestamp-from-python |
I considered using a datetime.datetime object instead. But it make more About the tests on the gzip format details: I am not an expert of the |
I'm no expert either. The output certainly seems to be deterministic I included the third test because I am guessing that the compressed |
test_literal_output looks really too strict to me. At most, you could |
I am uploading a new patch, identical to the previous patch except that |
The patches have been committed, thanks! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: