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
9cb83c37
Commit
9cb83c37
authored
Jan 23, 2017
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer list comprehension to init/append loop. Ref #936.
parent
8c272f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+5
-3
No files found.
setuptools/command/egg_info.py
View file @
9cb83c37
...
@@ -429,9 +429,11 @@ class FileList(_FileList):
...
@@ -429,9 +429,11 @@ class FileList(_FileList):
def
graft
(
self
,
dir
):
def
graft
(
self
,
dir
):
"""Include all files from 'dir/'."""
"""Include all files from 'dir/'."""
found
=
[]
found
=
[
for
match_dir
in
glob
(
dir
):
item
found
+=
distutils
.
filelist
.
findall
(
match_dir
)
for
match_dir
in
glob
(
dir
)
for
item
in
distutils
.
filelist
.
findall
(
match_dir
)
]
self
.
extend
(
found
)
self
.
extend
(
found
)
return
bool
(
found
)
return
bool
(
found
)
...
...
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