changeset 1571:fd94061db75c

py3 Ignore-this: fd41253efc73d29e56aa5c3b0f2fb34f darcs-hash:92db0f73f9b6da1e661fa2daff21d185adf8e782
author drewp <drewp@bigasterisk.com>
date Thu, 14 May 2020 22:29:44 -0700
parents 56188eac38b5
children 5dbabcff90b8
files lib/cycloneerr/cycloneerr.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/cycloneerr/cycloneerr.py	Sat May 02 15:08:12 2020 -0700
+++ b/lib/cycloneerr/cycloneerr.py	Thu May 14 22:29:44 2020 -0700
@@ -2,7 +2,7 @@
     import http.client as httplib
 except ImportError:
     import httplib  # type: ignore
-import cgi
+import html
 
 class PrettyErrorHandler(object):
     """
@@ -17,5 +17,5 @@
                "<body>%(code)d: %(message)s<pre>%(tb)s</pre></body></html>" % {
             "code": status_code,
             "message": httplib.responses[status_code],
-            "tb" : cgi.escape(tb),
+            "tb" : html.escape(tb),
         }