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-126845: Some edge cases in email.utils.parsedate_to_datetime seem to differ from RFC2822 spec#134438

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
GGyll wants to merge6 commits intopython:main
base:main
Choose a base branch
Loading
fromGGyll:bugfix/parsedate_to_datetime
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
NextNext commit
added digit check to prevent forced 4-digit year evaluation
  • Loading branch information
@GGyll
GGyll committedMay 21, 2025
commita84d66cb21a0cf89cacd50d4b3db7af79dfbd0aa
2 changes: 1 addition & 1 deletionLib/email/_parseaddr.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -149,7 +149,7 @@ def _parsedate_tz(data):
# calls for a two-digit yy, but RFC 2822 (which obsoletes RFC 822)
# mandates a 4-digit yy. For more information, see the documentation for
# the time module.
if yy < 100:
iflen(str(yy)) >= 2 andyy < 100:
# The year is between 1969 and 1999 (inclusive).
if yy > 68:
yy += 1900
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp