summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2016-06-12 01:02:46 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2016-06-12 01:02:46 (GMT)
commit0d18c15fbf4365764e61017c1ccb6cecc49edf84 (patch)
tree59b88a6e64d830b5c501ef867a0f84f0f65f9128 /Lib/pkgutil.py
parente7f27481a895fb73408e523202345fcd9355b00c (diff)
downloadcpython-0d18c15fbf4365764e61017c1ccb6cecc49edf84.zip
cpython-0d18c15fbf4365764e61017c1ccb6cecc49edf84.tar.gz
cpython-0d18c15fbf4365764e61017c1ccb6cecc49edf84.tar.bz2
Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packages
Patch by James Pickering.
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index fc4a074..97726a9 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -375,7 +375,7 @@ try:
if len(fn)==2 and fn[1].startswith('__init__.py'):
if fn[0] not in yielded:
yielded[fn[0]] = 1
- yield fn[0], True
+ yield prefix + fn[0], True
if len(fn)!=1:
continue