Commit b31105bd authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Rely on tuple argument to endswith

Co-authored-by: default avatarSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
parent c3019cf0
......@@ -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
......
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