Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
7b5f8e13
Commit
7b5f8e13
authored
Dec 31, 2020
by
Sviatoslav Sydorenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify `command.easy_install.expand_paths`
parent
554ded3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+12
-7
No files found.
setuptools/command/easy_install.py
View file @
7b5f8e13
...
@@ -1459,12 +1459,17 @@ def expand_paths(inputs):
...
@@ -1459,12 +1459,17 @@ def expand_paths(inputs):
# Yield existing non-dupe, non-import directory lines from it
# Yield existing non-dupe, non-import directory lines from it
for
line
in
lines
:
for
line
in
lines
:
if
not
line
.
startswith
(
"import"
):
if
line
.
startswith
(
"import"
):
continue
line
=
normalize_path
(
line
.
rstrip
())
line
=
normalize_path
(
line
.
rstrip
())
if
line
not
in
seen
:
if
line
in
seen
:
continue
seen
[
line
]
=
1
seen
[
line
]
=
1
if
not
os
.
path
.
isdir
(
line
):
if
not
os
.
path
.
isdir
(
line
):
continue
continue
yield
line
,
os
.
listdir
(
line
)
yield
line
,
os
.
listdir
(
line
)
...
...
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