diff options
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 7f360e05..bf380f13 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -211,8 +211,8 @@ class easy_install(Command): if self.dry_run: return - if (os.path.isdir(filename) and - not os.path.islink(filename)): + is_tree = os.path.isdir(filename) and not os.path.islink(filename) + if is_tree: rmtree(filename) else: os.unlink(filename) |