From 90d3283b813718fe36b0d82616dbb630de6fd7f6 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 4 Jul 2024 15:39:16 -0400 Subject: [PATCH] Only render the message if files was updated. --- Lib/zipimport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/zipimport.py b/Lib/zipimport.py index cf3c8d2e742618..224268e469fe1d 100644 --- a/Lib/zipimport.py +++ b/Lib/zipimport.py @@ -558,9 +558,9 @@ def _read_directory(archive): _bootstrap._verbose_message('zipimport: found {} names in {!r}', count, archive) add_count = _add_implicit_dirs(files) - _bootstrap._verbose_message('zipimport: added {} implicit directories in {!r}', - add_count, archive) - + if add_count: + _bootstrap._verbose_message('zipimport: added {} implicit directories in {!r}', + add_count, archive) return files