mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Remove unicode prefix from strings
This commit is contained in:
1 parent
bb5594badb
commit
b8ced413df
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user