Mercurial > p > roundup > code
view roundup/anypy/http_.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 | 277e91bf7936 |
line wrap: on
line source
try: # Python 3+ from http import client except: # Python 2.5-2.7 import httplib as client
