aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:31:49 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:31:49 -0500
commitf9fd181f25d50bd149c715c7ac52827da34d0e59 (patch)
tree36c9b2aca127aee3f4bfbcda67d082be9de63b6f
parent537c16561318df78f1a512101d0eca1b0593616e (diff)
downloadexternal_python_setuptools-f9fd181f25d50bd149c715c7ac52827da34d0e59.tar.gz
external_python_setuptools-f9fd181f25d50bd149c715c7ac52827da34d0e59.tar.bz2
external_python_setuptools-f9fd181f25d50bd149c715c7ac52827da34d0e59.zip
Extract method for filename deletion.
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 531ac8ff..01c67ccc 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -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