diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-29 18:43:43 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-29 18:43:43 (GMT) |
commit | 87bb6e9b2f448d5e34e1e841d59bc5e4c20039bd (patch) | |
tree | b05fb1da6388f23e634e41e7176f13c63b2717ee /Lib/imaplib.py | |
parent | 7376c996d5a50a1d2bd7072861400278524d5f20 (diff) | |
download | cpython-87bb6e9b2f448d5e34e1e841d59bc5e4c20039bd.zip cpython-87bb6e9b2f448d5e34e1e841d59bc5e4c20039bd.tar.gz cpython-87bb6e9b2f448d5e34e1e841d59bc5e4c20039bd.tar.bz2 |
Merged revisions 88231 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88231 | alexander.belopolsky | 2011-01-29 12:19:08 -0500 (Sat, 29 Jan 2011) | 4 lines
Issue #10939: Fixed imaplib.Internaldate2tuple(). Thanks Joe Peterson
for the report and the patch. Reviewed by Georg Brandl.
........
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 77806db..fc1e20a 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1266,8 +1266,8 @@ class _Authenticator: -Mon2num = {'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4, 'May': 5, 'Jun': 6, - 'Jul': 7, 'Aug': 8, 'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12} +Mon2num = {b'Jan': 1, b'Feb': 2, b'Mar': 3, b'Apr': 4, b'May': 5, b'Jun': 6, + b'Jul': 7, b'Aug': 8, b'Sep': 9, b'Oct': 10, b'Nov': 11, b'Dec': 12} def Internaldate2tuple(resp): """Convert IMAP4 INTERNALDATE to UT. @@ -1293,7 +1293,7 @@ def Internaldate2tuple(resp): # INTERNALDATE timezone must be subtracted to get UT zone = (zoneh*60 + zonem)*60 - if zonen == '-': + if zonen == b'-': zone = -zone tt = (year, mon, day, hour, min, sec, -1, -1, -1) |