Commit 17b6a78c by David Hotham Committed by Bjorn Neergaard

remove unused Link parameters

parent d7e0e97c
...@@ -3,7 +3,6 @@ from __future__ import annotations ...@@ -3,7 +3,6 @@ from __future__ import annotations
import urllib.parse import urllib.parse
import warnings import warnings
from html import unescape
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from poetry.core.packages.utils.link import Link from poetry.core.packages.utils.link import Link
...@@ -31,9 +30,7 @@ class HTMLPage(LinkSource): ...@@ -31,9 +30,7 @@ class HTMLPage(LinkSource):
if anchor.get("href"): if anchor.get("href"):
href = anchor.get("href") href = anchor.get("href")
url = self.clean_link(urllib.parse.urljoin(self._url, href)) url = self.clean_link(urllib.parse.urljoin(self._url, href))
pyrequire = anchor.get("data-requires-python") link = Link(url)
pyrequire = unescape(pyrequire) if pyrequire else None
link = Link(url, self, requires_python=pyrequire)
if link.ext not in self.SUPPORTED_FORMATS: if link.ext not in self.SUPPORTED_FORMATS:
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment