We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e6a58 commit a84d66cCopy full SHA for a84d66c
Lib/email/_parseaddr.py
@@ -149,7 +149,7 @@ def _parsedate_tz(data):
149
# calls for a two-digit yy, but RFC 2822 (which obsoletes RFC 822)
150
# mandates a 4-digit yy. For more information, see the documentation for
151
# the time module.
152
- if yy < 100:
+ if len(str(yy)) >= 2 and yy < 100:
153
# The year is between 1969 and 1999 (inclusive).
154
if yy > 68:
155
yy += 1900
0 commit comments