We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5be01 commit 9b0c9c0Copy full SHA for 9b0c9c0
supervisor/compat.py
@@ -105,3 +105,8 @@ def is_text_stream(stream):
105
import thread
106
except ImportError: # pragma: no cover
107
import _thread as thread
108
+
109
+try: # pragma: no cover
110
+ from html import escape
111
+except ImportError: # pragma: no cover
112
+ from cgi import escape
supervisor/medusa/util.py
@@ -1,10 +1,4 @@
1
-from supervisor.compat import PY2
2
-
3
-if PY2:
4
- from cgi import escape
5
-else:
6
- from html import escape
7
+from supervisor.compat import escape
8
9
def html_repr (object):
10
so = escape (repr (object))
0 commit comments