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 Alex Quinn
Recipients Alex Quinn, belopolsky, hollec, jjlee, python-dev, vstinner
Date 2013-08-19.07:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376898281.55.0.543423670833.issue5537@psf.upfronthosting.co.za>
In-reply-to
Content
For those who are affected by this bug, here's a snippet to monkey-patch cookielib on any Python 2.4 to 2.7.

A more complete version of this was attached to my message a moment ago.

==========================================
import cookielib
try:
    cookielib.time2isoz(2**32)
except ValueError:
    from datetime import datetime, timedelta
    def time2isoz(t=None):
        if t is None:
            dt = datetime.now()
        else:
            dt = datetime.utcfromtimestamp(0) + timedelta(seconds=int(t))
        return "%04d-%02d-%02d %02d:%02d:%02dZ"%\
                (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)
    cookielib.time2isoz = time2isoz
==========================================
History
Date User Action Args
2013-08-19 07:44:41Alex Quinnsetrecipients: + Alex Quinn, jjlee, belopolsky, vstinner, hollec, python-dev
2013-08-19 07:44:41Alex Quinnsetmessageid: <1376898281.55.0.543423670833.issue5537@psf.upfronthosting.co.za>
2013-08-19 07:44:41Alex Quinnlinkissue5537 messages
2013-08-19 07:44:41Alex Quinncreate