Commit f9fd181f authored by Jason R. Coombs's avatar Jason R. Coombs

Extract method for filename deletion.

parent 537c1656
......@@ -204,7 +204,9 @@ class easy_install(Command):
filename for filename in blockers
if os.path.exists(filename) or os.path.islink(filename)
)
for filename in extant_blockers:
list(map(self._delete_filename, extant_blockers))
def _delete_filename(self, filename):
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