mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #14209: pkgutil.iter_zipimport_modules ignores the prefix for packages
Patch by James Pickering.
This commit is contained in:
parent
e7f27481a8
commit
0d18c15fbf
3 changed files with 81 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue