Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-133998: Fix gzip file creation when time is out of range#134278

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
adang1345 wants to merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromadang1345:fix-gzip-mtime
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Keep docstring in line with documentation
  • Loading branch information
@adang1345
adang1345 committedMay 21, 2025
commit90a881b888f7939fc8d9655285b44764ef6b861f
7 changes: 5 additions & 2 deletionsLib/gzip.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -188,8 +188,11 @@ def __init__(self, filename=None, mode=None,

The optional mtime argument is the timestamp requested by gzip. The time
is in Unix format, i.e., seconds since 00:00:00 UTC, January 1, 1970.
If mtime is omitted or None, the current time is used. Use mtime = 0
to generate a compressed stream that does not depend on creation time.
Set mtime to 0 to generate a compressed stream that does not depend on
creation time. If mtime is omitted or None, the current time is used;
however, if the current time is outside the range 00:00:00 UTC, January
1, 1970 through 06:28:15 UTC, February 7, 2106, then the value 0 is used
instead.
Comment on lines +191 to +195

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ditto, see previous comment


"""

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp