Commit 28cd55a7 authored by Gregory P. Smith's avatar Gregory P. Smith

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.
parent 85b3cc77
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment