diff options
author | Guido van Rossum <guido@python.org> | 1999-04-29 12:50:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-29 12:50:36 (GMT) |
commit | b08f51b93a30513e57d0ed6a205b4ff73a68bf57 (patch) | |
tree | d562c47aee10841b9fe691364e7918d5260c1de9 | |
parent | 9ef8635c8c25291431779be5c17476074099be38 (diff) | |
download | cpython-b08f51b93a30513e57d0ed6a205b4ff73a68bf57.zip cpython-b08f51b93a30513e57d0ed6a205b4ff73a68bf57.tar.gz cpython-b08f51b93a30513e57d0ed6a205b4ff73a68bf57.tar.bz2 |
Mike Meyer reports a bug in his patch (several months ago) that
accepts long month names. One essential line was missing. Fixed now.
-rw-r--r-- | Lib/rfc822.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index fbab3c8..ef5a851 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -833,6 +833,7 @@ def parsedate_tz(data): if not mm in _monthnames: return None mm = _monthnames.index(mm)+1 + if mm > 12: mm = mm - 12 if dd[-1] == ',': dd = dd[:-1] i = string.find(yy, ':') |