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
15e0f14c
Commit
15e0f14c
authored
Jul 29, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove copy of rmtree, as Python 2.3 is no longer supported.
parent
7cb842e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
33 deletions
+1
-33
setuptools/command/easy_install.py
setuptools/command/easy_install.py
+1
-33
No files found.
setuptools/command/easy_install.py
View file @
15e0f14c
...
...
@@ -2230,39 +2230,7 @@ def load_launcher_manifest(name):
def
rmtree
(
path
,
ignore_errors
=
False
,
onerror
=
auto_chmod
):
"""Recursively delete a directory tree.
This code is taken from the Python 2.4 version of 'shutil', because
the 2.3 version doesn't really work right.
"""
if
ignore_errors
:
def
onerror
(
*
args
):
pass
elif
onerror
is
None
:
def
onerror
(
*
args
):
raise
names
=
[]
try
:
names
=
os
.
listdir
(
path
)
except
os
.
error
:
onerror
(
os
.
listdir
,
path
,
sys
.
exc_info
())
for
name
in
names
:
fullname
=
os
.
path
.
join
(
path
,
name
)
try
:
mode
=
os
.
lstat
(
fullname
).
st_mode
except
os
.
error
:
mode
=
0
if
stat
.
S_ISDIR
(
mode
):
rmtree
(
fullname
,
ignore_errors
,
onerror
)
else
:
try
:
os
.
remove
(
fullname
)
except
os
.
error
:
onerror
(
os
.
remove
,
fullname
,
sys
.
exc_info
())
try
:
os
.
rmdir
(
path
)
except
os
.
error
:
onerror
(
os
.
rmdir
,
path
,
sys
.
exc_info
())
return
shutil
.
rmtree
(
path
,
ignore_errors
,
onerror
)
def
current_umask
():
...
...
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