From 894195dd375fa26af9438da570c4c38d9c06f9ab Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Thu, 27 Aug 2020 21:50:32 -0400 Subject: [PATCH] Use html.escape() instead of escapeToXml() --- src/allmydata/test/web/test_web.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/allmydata/test/web/test_web.py b/src/allmydata/test/web/test_web.py index 3bf015fba..e65e04db2 100644 --- a/src/allmydata/test/web/test_web.py +++ b/src/allmydata/test/web/test_web.py @@ -3,6 +3,7 @@ from __future__ import print_function import os.path, re, urllib, time, cgi import json import treq +import html from bs4 import BeautifulSoup @@ -13,8 +14,6 @@ from twisted.internet.task import Clock from twisted.web import client, error, http from twisted.python import failure, log -from twisted.words.xish.domish import escapeToXml - from allmydata import interfaces, uri, webish from allmydata.storage_client import StorageFarmBroker, StubServer from allmydata.immutable import upload @@ -365,9 +364,9 @@ class WebMixin(TimezoneMixin): self._htmlname_unicode = u"<&weirdly'named\"file>>>_