view roundup/anypy/urllib_.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 894aa07be6cb
children 88dbacd11cd1
line wrap: on
line source


try:
    # Python 3+
    from urllib.parse import quote, urlencode, urlparse, parse_qs, urlunparse
except:
    # Python 2.5-2.7
    from urllib import quote, urlencode
    from urlparse import urlparse, parse_qs, urlunparse

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