Mercurial > cpython-lru_cache-weakref
diff Modules/zipimport.c @ 65515:cdfd198a6f1d
zipimport, get_module_code(): avoid useless _PyUnicode_AsString()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 18 Oct 2010 11:40:40 +0000 |
| parents | 8f0625954ffa |
| children | 752e4b5c64e9 |
line wrap: on
line diff
--- a/Modules/zipimport.c Mon Oct 18 11:39:05 2010 +0000 +++ b/Modules/zipimport.c Mon Oct 18 11:40:40 2010 +0000 @@ -1157,9 +1157,8 @@ strcpy(path + len, zso->suffix); if (Py_VerboseFlag > 1) - PySys_WriteStderr("# trying %s%c%s\n", - _PyUnicode_AsString(self->archive), - (int)SEP, path); + PySys_FormatStderr("# trying %U%c%s\n", + self->archive, (int)SEP, path); toc_entry = PyDict_GetItemString(self->files, path); if (toc_entry != NULL) { time_t mtime = 0;
