➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Scott.Wimer
收信人 Scott.Wimer
日期 2011-05-22.02:58:43
SpamBayes Score 5.7296013e-05
Marked as misclassified 否
Message-id <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za>
In-reply-to
内容
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 evaluated against the '_now' attribute of the CookieJar instance -- an attribute which is not set unless CookieJar().extract_cookies() was called previously.

Attached is a script that triggers this bug.
历史
日期 用户 动作 参数
2011-05-22 02:58:45Scott.Wimer修改recipients: + Scott.Wimer
2011-05-22 02:58:44Scott.Wimer修改messageid: <1306033124.86.0.836605602237.issue12144@psf.upfronthosting.co.za>
2011-05-22 02:58:44Scott.Wimer链接issue12144 messages
2011-05-22 02:58:44Scott.Wimer创建