diff lib/cycloneerr.py @ 430:053fd552b675

some py3 Ignore-this: 575bf1c73876b835134c0ac12b957ad2
author drewp@bigasterisk.com
date Sun, 07 Apr 2019 03:57:56 -0700
parents be855a111619
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):
     """