| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -558,6 +558,7 @@ def _read_directory(archive): | |||
| 558 | 558 | _bootstrap._verbose_message('zipimport: found {} names in {!r}', count, archive) | |
| 559 | 559 | ||
| 560 | 560 | # Add implicit directories. | |
| 561 | + count = 0 | ||
| 561 | 562 | for name in list(files): | |
| 562 | 563 | while True: | |
| 563 | 564 | i = name.rstrip(path_sep).rfind(path_sep) | |
@@ -568,8 +569,9 @@ def _read_directory(archive): | |||
| 568 | 569 | break | |
| 569 | 570 | files[name] = None | |
| 570 | 571 | count += 1 | |
| 571 | - _bootstrap._verbose_message('zipimport: added {} implicit directories in {!r}', | ||
| 572 | - count, archive) | ||
| 572 | + if count: | ||
| 573 | + _bootstrap._verbose_message('zipimport: added {} implicit directories in {!r}', | ||
| 574 | + count, archive) | ||
| 573 | 575 | return files | |
| 574 | 576 | ||
| 575 | 577 | # During bootstrap, we may need to load the encodings | |
| Back | FazBrowse Home | New Git URL |
0 commit comments