view roundup/anypy/cookie_.py @ 5191:fe52cab8f5b5

issue2550932 - html_calendar produces templating errors for bad date strings Changed code to trap and ignore unparsible dates. The calendar starts with today highlighted.
author John Rouillard <rouilj@ieee.org>
date Sat, 25 Feb 2017 22:21:15 -0500
parents dfd0bcc947e5
children 4cb860c33b37
line wrap: on
line source


try:
    # Python 3+
    from http import cookies as Cookie
    from http.cookies import CookieError, BaseCookie, SimpleCookie
    from http.cookies import _getdate as get_cookie_date
except:
    # Python 2.5-2.7
    from Cookie import CookieError, BaseCookie, SimpleCookie
    from Cookie import _getdate as get_cookie_date

Roundup Issue Tracker: http://roundup-tracker.org/