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 <[email protected]>
<http://bugs.python.org/issue16181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com