summaryrefslogtreecommitdiffstats
path: root/Lib/email/_parseaddr.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2006-02-03 04:44:52 (GMT)
committerBarry Warsaw <barry@python.org>2006-02-03 04:44:52 (GMT)
commit602426e3cf4a65fe37fbe17a3e3a106d0a998811 (patch)
treee823b43b604a4bd370826c094e277722aee7f132 /Lib/email/_parseaddr.py
parent5a49fae1ab02f94fe0753a0f8da1bafa39a33f3c (diff)
downloadcpython-602426e3cf4a65fe37fbe17a3e3a106d0a998811.zip
cpython-602426e3cf4a65fe37fbe17a3e3a106d0a998811.tar.gz
cpython-602426e3cf4a65fe37fbe17a3e3a106d0a998811.tar.bz2
parsedate_tz(): Minor cleanup.
Port from Python 2.3/email 2.5: Add a test for the tm_yday field is 1 in the return of parsedate().
Diffstat (limited to 'Lib/email/_parseaddr.py')
-rw-r--r--Lib/email/_parseaddr.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py
index f6efcd5..7d759ef 100644
--- a/Lib/email/_parseaddr.py
+++ b/Lib/email/_parseaddr.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2002-2004 Python Software Foundation
+# Copyright (C) 2002-2006 Python Software Foundation
# Contact: email-sig@python.org
"""Email address parsing code.
@@ -117,8 +117,7 @@ def parsedate_tz(data):
else:
tzsign = 1
tzoffset = tzsign * ( (tzoffset//100)*3600 + (tzoffset % 100)*60)
- tuple = (yy, mm, dd, thh, tmm, tss, 0, 1, 0, tzoffset)
- return tuple
+ return yy, mm, dd, thh, tmm, tss, 0, 1, 0, tzoffset
def parsedate(data):