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.

Author demian.brecht
Recipients demian.brecht, serhiy.storchaka, ssh
Date 2015-04-14.15:28:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429025335.84.0.203255992887.issue23888@psf.upfronthosting.co.za>
In-reply-to
Content
Although it's likely not going to be a high frequency issue (but would be painful to track down when it does become an issue), by doing an int(float(expires)), you're losing the sub-second portion of the expiry. Why not something like this:

try:
    expires = int(expires)
except ValueError:
    expires = int(float(expires) * 1e6)

Looking at the values in the Chrome sqlite3 database, it seems like the above is what they're storing (INTEGER datatype).

How are wget and curl treating the fractional part? I'd be really surprised if they were ignoring it as in the proposed patch.
History
Date User Action Args
2015-04-14 15:28:55demian.brechtsetrecipients: + demian.brecht, serhiy.storchaka, ssh
2015-04-14 15:28:55demian.brechtsetmessageid: <1429025335.84.0.203255992887.issue23888@psf.upfronthosting.co.za>
2015-04-14 15:28:55demian.brechtlinkissue23888 messages
2015-04-14 15:28:55demian.brechtcreate