From b08f51b93a30513e57d0ed6a205b4ff73a68bf57 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 29 Apr 1999 12:50:36 +0000 Subject: [PATCH] Mike Meyer reports a bug in his patch (several months ago) that accepts long month names. One essential line was missing. Fixed now. --- Lib/rfc822.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/rfc822.py b/Lib/rfc822.py index fbab3c85a25..ef5a8512f06 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, ':')