Commit 16060fd9 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract variable for is_tree

parent e4fe5c76
...@@ -211,8 +211,8 @@ class easy_install(Command): ...@@ -211,8 +211,8 @@ class easy_install(Command):
if self.dry_run: if self.dry_run:
return return
if (os.path.isdir(filename) and is_tree = os.path.isdir(filename) and not os.path.islink(filename)
not os.path.islink(filename)): if is_tree:
rmtree(filename) rmtree(filename)
else: else:
os.unlink(filename) os.unlink(filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment