mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
zipimport, get_module_code(): avoid useless _PyUnicode_AsString()
This commit is contained in:
parent
c342fca222
commit
353349caeb
1 changed files with 2 additions and 3 deletions
|
|
@ -1157,9 +1157,8 @@ get_module_code(ZipImporter *self, char *fullname,
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue