[docs] UserWarning: cookielib bug!

Tomáš Beluský tomasbelusky at gmail.com
Thu Aug 23 09:47:11 CEST 2012


Hi, I found this bug:

/usr/local/lib/python2.7/cookielib.py:1584: UserWarning: cookielib bug!
Traceback (most recent call last):
   File "/usr/local/lib/python2.7/cookielib.py", line 1582, in make_cookies
     parse_ns_headers(ns_hdrs), request)
   File "/usr/local/lib/python2.7/cookielib.py", line 485, in 
parse_ns_headers
     v = http2time(_strip_quotes(v))  # None if invalid
   File "/usr/local/lib/python2.7/cookielib.py", line 266, in http2time
     return _str2time(day, mon, yr, hr, min, sec, tz)
   File "/usr/local/lib/python2.7/cookielib.py", line 176, in _str2time
     t = _timegm((yr, mon, day, hr, min, sec, tz))
   File "/usr/local/lib/python2.7/cookielib.py", line 76, in _timegm
     return timegm(tt)
   File "/usr/local/lib/python2.7/calendar.py", line 608, in timegm
     days = datetime.date(year, month, 1).toordinal() - _EPOCH_ORD + day - 1
ValueError: year is out of range

   _warn_unhandled_exception()


More information about the docs mailing list