Alex Quinn added the comment: 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 ========================================== ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5537> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com