Remove unicode prefix from strings

This commit is contained in:
Yotam Nachum
2022-09-12 11:41:20 +03:00
committed by Orip
parent bb5594badb
commit b8ced413df
+2 -2
View File
@@ -213,7 +213,7 @@ class PEP503PageParser(HTMLParser):
self._path.append(Tag(tag, dict(attrs)))
def handle_endtag(self, tag):
if tag == u"a":
if tag == "a":
while True:
if self._path.pop().tagname == tag:
break
@@ -223,7 +223,7 @@ class PEP503PageParser(HTMLParser):
def handle_data(self, data):
if not (len(self._path) > 0
and self._path[-1].tagname == u"a"
and self._path[-1].tagname == "a"
and self._path[-1].attrs.get("href")):
return