summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorDoug Greiman <dgreiman@google.com>2017-11-05 05:43:48 -0800
committerDoug Greiman <dgreiman@google.com>2017-12-11 16:32:18 -0800
commit7b8b56fa28fc9ee4cd6e0156074505e3fef620e3 (patch)
tree594f9673c48216c40935195f1dd2bb682fa80dec /setuptools/command/egg_info.py
parent66729ab597c6bfddd128159fe0a6d13e7f95ce83 (diff)
downloadpython-setuptools-git-7b8b56fa28fc9ee4cd6e0156074505e3fef620e3.tar.gz
Fix trailing slash handling in pkg_resources.ZipProvider
Given a ZipProvider, if the underlying ZipImporter prefix is empty, then resource_listdir('') and resource_listdir('subdir/') fail, while resource_listdir('/') and resource_listdir('subdir') succeed. On the other hand, if the underlying ZipImport prefix is not empty, then resource_listdir('/') fails but resource_listdir('') succeeds. With this change, the cases listed succeed with or without trailing slashes.
Diffstat (limited to 'setuptools/command/egg_info.py')
0 files changed, 0 insertions, 0 deletions