Commit 537c1656 authored by Jason R. Coombs's avatar Jason R. Coombs

Filter blockers in the iterable

parent f922da30
......@@ -200,8 +200,11 @@ class easy_install(Command):
)
def delete_blockers(self, blockers):
for filename in blockers:
if os.path.exists(filename) or os.path.islink(filename):
extant_blockers = (
filename for filename in blockers
if os.path.exists(filename) or os.path.islink(filename)
)
for filename in extant_blockers:
log.info("Deleting %s", filename)
if not self.dry_run:
if (os.path.isdir(filename) and
......
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