Mercurial > code > home > repos > homeauto
comparison lib/cycloneerr.py @ 1250:81ab17e377b7
patchsource py3 support. might break py2
Ignore-this: e7559afeb74ffa53bf2085f78455014
darcs-hash:3bc2fc52891ea205aa79f89a16d3d7b341cda35e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 18 Apr 2019 21:58:19 -0700 |
parents | 5d97ed6118db |
children | a63549a50b3f |
comparison
equal
deleted
inserted
replaced
1249:2ddfb2cf95ab | 1250:81ab17e377b7 |
---|---|
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 |