Commit 17b6a78c by David Hotham Committed by Bjorn Neergaard

remove unused Link parameters

parent d7e0e97c
......@@ -3,7 +3,6 @@ from __future__ import annotations
import urllib.parse
import warnings
from html import unescape
from typing import TYPE_CHECKING
from poetry.core.packages.utils.link import Link
......@@ -31,9 +30,7 @@ class HTMLPage(LinkSource):
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
......
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