diff options
| author | Daniel Holth <dholth@fastmail.fm> | 2012-08-26 16:46:21 -0400 |
|---|---|---|
| committer | Daniel Holth <dholth@fastmail.fm> | 2012-08-26 16:46:21 -0400 |
| commit | 4095eb5d31995c4a80d0a9b5125d8cefbf1d8390 (patch) | |
| tree | 505ffd0d9de69de8f671c611cee56effdcafe010 | |
| parent | 71d6c4c5a29e30a8dac82ad5a79356a5a849e783 (diff) | |
| download | python-setuptools-git-4095eb5d31995c4a80d0a9b5125d8cefbf1d8390.tar.gz | |
Python < 2.5 doesn't support tuple arguments to .endswith()
--HG--
branch : distribute
extra : rebase_source : c22d5cf00d0f5f053104ff81e60be4701ca27ad8
| -rw-r--r-- | pkg_resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index 63d18977..2d7f247e 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -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 |
