aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:39:36 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:39:36 -0500
commit16a4240286b5202e2a52c22efb63fc3c1ba7ab02 (patch)
tree83dd069efb698cef070105a74f6605fea450e1ba /setuptools/command/easy_install.py
parent16060fd91b26126c6f1fce2c1dba4a79cf85177e (diff)
downloadexternal_python_setuptools-16a4240286b5202e2a52c22efb63fc3c1ba7ab02.tar.gz
external_python_setuptools-16a4240286b5202e2a52c22efb63fc3c1ba7ab02.tar.bz2
external_python_setuptools-16a4240286b5202e2a52c22efb63fc3c1ba7ab02.zip
More concisely describe the removal.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index bf380f13..0828be84 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -212,10 +212,8 @@ class easy_install(Command):
return
is_tree = os.path.isdir(filename) and not os.path.islink(filename)
- if is_tree:
- rmtree(filename)
- else:
- os.unlink(filename)
+ remover = rmtree if is_tree else os.unlink
+ remover(filename)
def finalize_options(self):
if self.version: