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
80d906b7
Commit
80d906b7
authored
Sep 22, 2022
by
David Hotham
Committed by
Bjorn Neergaard
Sep 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unnecessary canonicalize_name()
parent
424ea0c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
src/poetry/repositories/link_sources/base.py
+1
-2
No files found.
src/poetry/repositories/link_sources/base.py
View file @
80d906b7
...
@@ -7,7 +7,6 @@ from typing import TYPE_CHECKING
...
@@ -7,7 +7,6 @@ from typing import TYPE_CHECKING
from
typing
import
DefaultDict
from
typing
import
DefaultDict
from
typing
import
List
from
typing
import
List
from
packaging.utils
import
canonicalize_name
from
poetry.core.packages.package
import
Package
from
poetry.core.packages.package
import
Package
from
poetry.core.semver.version
import
Version
from
poetry.core.semver.version
import
Version
...
@@ -73,7 +72,7 @@ class LinkSource:
...
@@ -73,7 +72,7 @@ class LinkSource:
m
=
wheel_file_re
.
match
(
link
.
filename
)
or
sdist_file_re
.
match
(
link
.
filename
)
m
=
wheel_file_re
.
match
(
link
.
filename
)
or
sdist_file_re
.
match
(
link
.
filename
)
if
m
:
if
m
:
name
=
canonicalize_name
(
m
.
group
(
"name"
)
)
name
=
m
.
group
(
"name"
)
version_string
=
m
.
group
(
"ver"
)
version_string
=
m
.
group
(
"ver"
)
else
:
else
:
info
,
ext
=
link
.
splitext
()
info
,
ext
=
link
.
splitext
()
...
...
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