Skip to content

Commit

Permalink
remove unused Link parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and neersighted committed Jun 2, 2022
1 parent d7e0e97 commit 17b6a78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/poetry/repositories/link_sources/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import urllib.parse
import warnings

from html import unescape
from typing import TYPE_CHECKING

from poetry.core.packages.utils.link import Link
Expand Down Expand Up @@ -31,9 +30,7 @@ def links(self) -> Iterator[Link]:
if anchor.get("href"):
href = anchor.get("href")
url = self.clean_link(urllib.parse.urljoin(self._url, href))
pyrequire = anchor.get("data-requires-python")
pyrequire = unescape(pyrequire) if pyrequire else None
link = Link(url, self, requires_python=pyrequire)
link = Link(url)

if link.ext not in self.SUPPORTED_FORMATS:
continue
Expand Down

0 comments on commit 17b6a78

Please sign in to comment.