aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-11 10:26:16 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-11 10:26:16 -0500
commitdacc24690e7c8503744ce433aae6dd74a50e2337 (patch)
treed531c50ff339449f7f45a378a9a22e1ac58dcce0 /setuptools/package_index.py
parent2f7d95690e53fe92a82b055b82c4dc02b6a3339c (diff)
downloadexternal_python_setuptools-dacc24690e7c8503744ce433aae6dd74a50e2337.tar.gz
external_python_setuptools-dacc24690e7c8503744ce433aae6dd74a50e2337.tar.bz2
external_python_setuptools-dacc24690e7c8503744ce433aae6dd74a50e2337.zip
Extract if in for loop
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 36231f11..00ce3ea5 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -352,8 +352,8 @@ class PackageIndex(Environment):
self.warn(msg, url)
def scan_egg_links(self, search_path):
- for item in search_path:
- if os.path.isdir(item):
+ dirs = filter(os.path.isdir, search_path)
+ for item in dirs:
for entry in os.listdir(item):
if entry.endswith('.egg-link'):
self.scan_egg_link(item, entry)