]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mike Meyer reports a bug in his patch (several months ago) that
authorGuido van Rossum <guido@python.org>
Thu, 29 Apr 1999 12:50:36 +0000 (12:50 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 29 Apr 1999 12:50:36 +0000 (12:50 +0000)
accepts long month names.  One essential line was missing.  Fixed now.

Lib/rfc822.py

index fbab3c85a252b0e871ad3154085f861a1643d35e..ef5a8512f06c7ae1f8d94a5c798877fb02f582bb 100644 (file)
@@ -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, ':')