From b8ced413dfa7a12a372d48a034e859d711aea844 Mon Sep 17 00:00:00 2001 From: Yotam Nachum Date: Mon, 12 Sep 2022 11:41:20 +0300 Subject: [PATCH] Remove unicode prefix from strings --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7a479fb..a457c89 100755 --- a/setup.py +++ b/setup.py @@ -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