summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-18 11:40:40 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-18 11:40:40 (GMT)
commit353349caebeb64b7773d494227c53553a9e7444f (patch)
treecad5e4d96bc6f63a992e2f6d140380fae9c81ad1
parentc342fca2229c6e3badd2f1f3e4e053785ec1aea9 (diff)
downloadcpython-353349caebeb64b7773d494227c53553a9e7444f.zip
cpython-353349caebeb64b7773d494227c53553a9e7444f.tar.gz
cpython-353349caebeb64b7773d494227c53553a9e7444f.tar.bz2
zipimport, get_module_code(): avoid useless _PyUnicode_AsString()
-rw-r--r--Modules/zipimport.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index 9596026..0a0a778 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -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;