diff options
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) |
commit | 0d18c15fbf4365764e61017c1ccb6cecc49edf84 (patch) | |
tree | 59b88a6e64d830b5c501ef867a0f84f0f65f9128 /Lib/pkgutil.py | |
parent | e7f27481a895fb73408e523202345fcd9355b00c (diff) | |
download | cpython-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.py | 2 |
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 |