mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Mike Meyer reports a bug in his patch (several months ago) that
accepts long month names. One essential line was missing. Fixed now.
This commit is contained in:
parent
9ef8635c8c
commit
b08f51b93a
1 changed files with 1 additions and 0 deletions
|
|
@ -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, ':')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue