changeset 430:053fd552b675

some py3 Ignore-this: 575bf1c73876b835134c0ac12b957ad2
author drewp@bigasterisk.com
date Sun, 07 Apr 2019 03:57:56 -0700
parents fcd2c026f51e
children be76e9677a99
files lib/cycloneerr.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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):
     """