We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bec4206 commit 7dab452Copy full SHA for 7dab452
web_programming/emails_from_url.py
@@ -31,7 +31,7 @@ def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None
31
# Check the list of defined attributes.
32
for name, value in attrs:
33
# If href is defined, not empty nor # print it and not already in urls.
34
- if name == "href" and value not in set((*self.urls, "", "#")):
+ if name == "href" and value not in (*self.urls, "", "#"):
35
url = parse.urljoin(self.domain, value)
36
self.urls.append(url)
37
0 commit comments