diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 23:36:45 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-06 23:36:45 -0500 |
commit | 16060fd91b26126c6f1fce2c1dba4a79cf85177e (patch) | |
tree | f3536f0552d4e601157c90afd8dd3ec3cb590432 /setuptools/command/easy_install.py | |
parent | e4fe5c76f89d0249ff7035a38795fa5ae1e38f09 (diff) | |
download | python-setuptools-git-16060fd91b26126c6f1fce2c1dba4a79cf85177e.tar.gz |
Extract variable for is_tree
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) |