[issue16181] cookielib.http2time raises ValueError for invalid date.
Charles Jones
report at bugs.python.org
Tue Oct 9 22:06:52 CEST 2012
New submission from Charles Jones:
The docs for http2time state that "None is returned if [...] the time is outside the representable range". However, it is raising a ValueError when a year larger than datetime.MAXYEAR is provided (actually raised downstream by calendar.date()).
To reproduce:
import cookielib
print cookielib.http2time("08-Oct-3697739")
Expected Result:
Should return None
Actual Result:
Raises ValueError: year is out of range
----------
components: Library (Lib)
messages: 172515
nosy: Charles.Jones
priority: normal
severity: normal
status: open
title: cookielib.http2time raises ValueError for invalid date.
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16181>
_______________________________________
More information about the Python-bugs-list
mailing list