diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-01-16 18:47:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-16 18:47:18 -0500 |
| commit | b31105bdc855d75fc4f9fc7cfe005a81e7cc2f38 (patch) | |
| tree | f7ff382373a22e021868629c36fdb22f57f3912b /pkg_resources | |
| parent | c3019cf01e7f3d61f8fa41143e40546247292045 (diff) | |
| download | python-setuptools-git-b31105bdc855d75fc4f9fc7cfe005a81e7cc2f38.tar.gz | |
Rely on tuple argument to endswith
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index ba90c8c4..a304647f 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -1984,7 +1984,7 @@ def find_eggs_in_zip(importer, path_item, only=False): dists = find_eggs_in_zip(zipimport.zipimporter(subpath), subpath) for dist in dists: yield dist - elif any(map(lower.endswith, ('.dist-info', '.egg-info'))): + elif subitem.lower().endswith(('.dist-info', '.egg-info')): subpath = os.path.join(path_item, subitem) submeta = EggMetadata(zipimport.zipimporter(subpath)) submeta.egg_info = subpath |
