Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
17b6a78c
Commit
17b6a78c
authored
Jun 02, 2022
by
David Hotham
Committed by
Bjorn Neergaard
Jun 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused Link parameters
parent
d7e0e97c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
src/poetry/repositories/link_sources/html.py
+1
-4
No files found.
src/poetry/repositories/link_sources/html.py
View file @
17b6a78c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment