Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packages

Patch by James Pickering.
This commit is contained in:
Łukasz Langa 2016-06-11 18:02:46 -07:00
parent e7f27481a8
commit 0d18c15fbf
3 changed files with 81 additions and 4 deletions

View file

@ -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