mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +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);
|
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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue