diff lib/cycloneerr.py @ 1233:5d97ed6118db

some py3 Ignore-this: 575bf1c73876b835134c0ac12b957ad2 darcs-hash:571621cdabfbb5e697741bc127bd7e2b2cf022b7
author drewp <drewp@bigasterisk.com>
date Sun, 07 Apr 2019 03:57:56 -0700
parents bebb8f7c5a3e
children 3d51d4b63497
line wrap: on
line diff
--- a/lib/cycloneerr.py	Sun Apr 07 03:56:17 2019 -0700
+++ b/lib/cycloneerr.py	Sun Apr 07 03:57:56 2019 -0700
@@ -1,4 +1,8 @@
-import httplib, cgi
+try:
+    import httplib
+except ImportError:
+    import http.client as httplib
+import cgi
 
 class PrettyErrorHandler(object):
     """