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):
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)
......
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