Mercurial > code > home > repos > homeauto
comparison lib/cycloneerr.py @ 447:3d51d4b63497
patchsource py3 support. might break py2
Ignore-this: e7559afeb74ffa53bf2085f78455014
author | drewp@bigasterisk.com |
---|---|
date | Thu, 18 Apr 2019 21:58:19 -0700 |
parents | 053fd552b675 |
children | a63549a50b3f |
comparison
equal
deleted
inserted
replaced
446:346b85a9adbb | 447:3d51d4b63497 |
---|---|
1 try: | 1 try: |
2 import httplib | 2 import httplib |
3 except ImportError: | 3 except ImportError: |
4 import http.client as httplib | 4 import http.client as httplib # type: ignore |
5 import cgi | 5 import cgi |
6 | 6 |
7 class PrettyErrorHandler(object): | 7 class PrettyErrorHandler(object): |
8 """ | 8 """ |
9 mix-in to improve cyclone.web.RequestHandler | 9 mix-in to improve cyclone.web.RequestHandler |