diff options
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 6 |
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: |