]> granicus.if.org Git - python/commitdiff
Remove inaccurate comment and a the related recently added
authorGregory P. Smith <greg@krypto.org>
Tue, 28 Jan 2014 06:43:25 +0000 (22:43 -0800)
committerGregory P. Smith <greg@krypto.org>
Tue, 28 Jan 2014 06:43:25 +0000 (22:43 -0800)
Py_VerboseFlag print that can never be triggered.

prefix[0] is always equal to 0 at this point in the code.

Modules/zipimport.c

index 180b56f8bc8e7fdfe225008addfe10fe03c1e983..71e0d18611dadd3a6488142d24bd6bf730d23ab4 100644 (file)
@@ -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;