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
f6e2f956
Commit
f6e2f956
authored
Oct 03, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing the last remaning apply() calls
parent
55b356b1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
archive_util.py
archive_util.py
+1
-1
dir_util.py
dir_util.py
+1
-1
filelist.py
filelist.py
+1
-1
No files found.
archive_util.py
View file @
f6e2f956
...
...
@@ -233,7 +233,7 @@ def make_archive(base_name, format, root_dir=None, base_dir=None, verbose=0,
kwargs
[
'owner'
]
=
owner
kwargs
[
'group'
]
=
group
filename
=
apply
(
func
,
(
base_name
,
base_dir
),
kwargs
)
filename
=
func
(
base_name
,
base_dir
,
**
kwargs
)
if
root_dir
is
not
None
:
log
.
debug
(
"changing back to '%s'"
,
save_cwd
)
os
.
chdir
(
save_cwd
)
...
...
dir_util.py
View file @
f6e2f956
...
...
@@ -190,7 +190,7 @@ def remove_tree(directory, verbose=1, dry_run=0):
_build_cmdtuple
(
directory
,
cmdtuples
)
for
cmd
in
cmdtuples
:
try
:
apply
(
cmd
[
0
],
(
cmd
[
1
],)
)
cmd
[
0
](
cmd
[
1
]
)
# remove dir from cache if it's already there
abspath
=
os
.
path
.
abspath
(
cmd
[
1
])
if
abspath
in
_path_created
:
...
...
filelist.py
View file @
f6e2f956
...
...
@@ -61,7 +61,7 @@ class FileList:
sortable_files
.
sort
()
self
.
files
=
[]
for
sort_tuple
in
sortable_files
:
self
.
files
.
append
(
apply
(
os
.
path
.
join
,
sort_tuple
))
self
.
files
.
append
(
os
.
path
.
join
(
*
sort_tuple
))
# -- Other miscellaneous utility methods ---------------------------
...
...
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