zipimport, get_module_code(): avoid useless _PyUnicode_AsString()

This commit is contained in:
Victor Stinner 2010-10-18 11:40:40 +00:00
parent c342fca222
commit 353349caeb

View file

@ -1157,9 +1157,8 @@ get_module_code(ZipImporter *self, char *fullname,
strcpy(path + len, zso->suffix); strcpy(path + len, zso->suffix);
if (Py_VerboseFlag > 1) if (Py_VerboseFlag > 1)
PySys_WriteStderr("# trying %s%c%s\n", PySys_FormatStderr("# trying %U%c%s\n",
_PyUnicode_AsString(self->archive), self->archive, (int)SEP, path);
(int)SEP, path);
toc_entry = PyDict_GetItemString(self->files, path); toc_entry = PyDict_GetItemString(self->files, path);
if (toc_entry != NULL) { if (toc_entry != NULL) {
time_t mtime = 0; time_t mtime = 0;