[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
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

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
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

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-21 Thread Scott Wimer
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