mirror of https://github.com/python/cpython
gh-59110: Fix a debug output for implicit directories (GH-121375)
This commit is contained in:
parent
db39bc42f9
commit
cecd6012b0
|
@ -558,6 +558,7 @@ def _read_directory(archive):
|
|||
_bootstrap._verbose_message('zipimport: found {} names in {!r}', count, archive)
|
||||
|
||||
# Add implicit directories.
|
||||
count = 0
|
||||
for name in list(files):
|
||||
while True:
|
||||
i = name.rstrip(path_sep).rfind(path_sep)
|
||||
|
@ -568,6 +569,7 @@ def _read_directory(archive):
|
|||
break
|
||||
files[name] = None
|
||||
count += 1
|
||||
if count:
|
||||
_bootstrap._verbose_message('zipimport: added {} implicit directories in {!r}',
|
||||
count, archive)
|
||||
return files
|
||||
|
|
Loading…
Reference in New Issue