Scott Wimer added the comment:
Forgot to include the patch. Oops.
--
keywords: +patch
Added file: http://bugs.python.org/file22055/cookielib-crash.patch
___
Python tracker
<http://bugs.python.org/issue12
Scott Wimer added the comment:
The actual error is triggered by line 1507 in '_cookie_from_cookie_tuple()'.
An easy fix is to move the setting of '_now' on line 1636 into the
'make_cookies()' method.
That addresses this problem and doesn't look like it
New submission from Scott Wimer :
When cookielib.CookieJar().make_cookies is used to extract cookies from a
urllib2 response, it crashes when it encounters a 'Set-Cookie' header entry
that has an 'expires' attribute.
This crash occurs because the expires time is evaluat