Commit 4095eb5d authored by Daniel Holth's avatar Daniel Holth

Python < 2.5 doesn't support tuple arguments to .endswith()

--HG--
branch : distribute
extra : rebase_source : c22d5cf00d0f5f053104ff81e60be4701ca27ad8
parent 71d6c4c5
......@@ -1746,7 +1746,7 @@ def find_on_path(importer, path_item, only=False):
# scan for .egg and .egg-info in directory
for entry in os.listdir(path_item):
lower = entry.lower()
if lower.endswith(('.egg-info', '.dist-info')):
if lower.endswith('.egg-info') or lower.endswith('.dist-info'):
fullpath = os.path.join(path_item, entry)
if os.path.isdir(fullpath):
# egg-info directory, allow getting metadata
......
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