changeset 769:71e8ab109f5a

py3 Ignore-this: fd41253efc73d29e56aa5c3b0f2fb34f
author drewp@bigasterisk.com
date Thu, 14 May 2020 22:29:44 -0700
parents c8763fc21a42
children 11712539f4df
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),
         }