diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-11 10:26:16 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-11 10:26:16 -0500 |
| commit | dacc24690e7c8503744ce433aae6dd74a50e2337 (patch) | |
| tree | d531c50ff339449f7f45a378a9a22e1ac58dcce0 /setuptools/package_index.py | |
| parent | 2f7d95690e53fe92a82b055b82c4dc02b6a3339c (diff) | |
| download | python-setuptools-git-dacc24690e7c8503744ce433aae6dd74a50e2337.tar.gz | |
Extract if in for loop
Diffstat (limited to 'setuptools/package_index.py')
| -rwxr-xr-x | setuptools/package_index.py | 4 |
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) |
