Commit 16a42402 authored by Jason R. Coombs's avatar Jason R. Coombs

More concisely describe the removal.

parent 16060fd9
......@@ -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:
......
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