Mercurial > code > home > repos > homeauto
comparison lib/cycloneerr.py @ 1275:202edadf4351
py3 protection
Ignore-this: 732ec7689142569f93894eeaf8b9cd78
darcs-hash:70a30b864545f5e1f42a79068264f5fa3cad736c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 20 Apr 2019 23:49:16 -0700 |
parents | 81ab17e377b7 |
children |
comparison
equal
deleted
inserted
replaced
1274:572c2889d02e | 1275:202edadf4351 |
---|---|
1 try: | 1 try: |
2 import httplib | 2 import http.client as httplib |
3 except ImportError: | 3 except ImportError: |
4 import http.client as httplib # type: ignore | 4 import 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 |