[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-07 Thread ssh
ssh added the comment: Thanks for checking in the RFC. I had done that before I posted my StackOverflow question, but should have mentioned it here for completeness. I've addressed the comments. -- Added file: http://bugs.python.org/file39315/mywork.patch

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-06 Thread ssh
ssh added the comment: Wouldn't int(float(expires) * 1e6) set the date much further in the future? I'm not sure why you'd do that unless the plan is to change the internal time unit to microseconds (which seems like a much bigger change, and overkill for handling this special case). Cookie

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-06 Thread ssh
ssh added the comment: Attaching patch after addressing comments in code review. -- Added file: http://bugs.python.org/file39311/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23888

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-08 Thread ssh
New submission from ssh: If the FileCookieJar reads a cookie whose expiry time is a decimal fraction, it crashes. Chrome extensions cookies.txt and EdiThisCookie export the expiry time as decimal fractions. This is accepted by wget and curl, but not by the FileCookieJar which ends up