]> granicus.if.org Git - python/commitdiff
zipimport, get_module_code(): avoid useless _PyUnicode_AsString()
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 18 Oct 2010 11:40:40 +0000 (11:40 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 18 Oct 2010 11:40:40 +0000 (11:40 +0000)
Modules/zipimport.c

index 9596026488036bd8df941dc9c005ade02ef78fcc..0a0a778664b365c92ee0a41bbb20d7f786e89d30 100644 (file)
@@ -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;