Skip to content

Commit 2180b7c

Browse files
committed
import cgi.escape Deprecated since 3.2+ html.escape is 3.2+
1 parent ebbeef9 commit 2180b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/message_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def get(self):
7272
response += "</style>\n"
7373
response += "</head><body><div id='wptorange'></div>\n"
7474
if MESSAGE_SERVER.config is not None:
75-
import cgi
75+
import html
7676
response += '<div id="wptagentConfig" style="display: none;">'
77-
response += cgi.escape(json.dumps(MESSAGE_SERVER.config))
77+
response += html.escape(json.dumps(MESSAGE_SERVER.config))
7878
response += '</div>'
7979
response += "</body></html>"
8080
elif self.request.uri == '/wpt-start-recording':

0 commit comments

Comments
 (0)