diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-20 21:34:25 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-01-20 21:34:25 -0500 |
| commit | 36a6a8bcf4b803f16891a766e87aabca3ace09e9 (patch) | |
| tree | a5329be4d29e59178faa447cff795f11ab2d282f /pkg_resources/__init__.py | |
| parent | 1b935caf64fc8f3eb72c7ee8c05a221f7ca9d9b7 (diff) | |
| download | external_python_setuptools-36a6a8bcf4b803f16891a766e87aabca3ace09e9.tar.gz external_python_setuptools-36a6a8bcf4b803f16891a766e87aabca3ace09e9.tar.bz2 external_python_setuptools-36a6a8bcf4b803f16891a766e87aabca3ace09e9.zip | |
Remove usage relying on deprecated and ambiguous leading slash. Ref #1635
Diffstat (limited to 'pkg_resources/__init__.py')
| -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 37222720..b30392fa 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -1932,7 +1932,7 @@ def find_eggs_in_zip(importer, path_item, only=False): if only: # don't yield nested distros return - for subitem in metadata.resource_listdir('/'): + for subitem in metadata.resource_listdir(''): if _is_egg_path(subitem): subpath = os.path.join(path_item, subitem) dists = find_eggs_in_zip(zipimport.zipimporter(subpath), subpath) |
