From aaef0e7821e10c851277efa44022d1b27ec6453f Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 27 Jan 2014 22:43:25 -0800 Subject: [PATCH] Remove inaccurate comment and a the related recently added Py_VerboseFlag print that can never be triggered. prefix[0] is always equal to 0 at this point in the code. --- Modules/zipimport.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 180b56f8bc..71e0d18611 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -134,13 +134,6 @@ zipimporter_init(ZipImporter *self, PyObject *args, PyObject *kwds) } if (path != NULL) { PyObject *files; - if (Py_VerboseFlag && prefix && prefix[0] != '\0') - PySys_WriteStderr("# zipimport: prefix=%s constructing a " - "zipimporter for %s\n", prefix, path); - /* NOTE(gps): test_zipimport.py never exercises a case where - * prefix is non-empty. When would that ever be possible? - * Are we missing coverage or is prefix simply never needed? - */ files = PyDict_GetItemString(zip_directory_cache, path); if (files == NULL) { PyObject *zip_stat = NULL; -- 2.50.1