diff options
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r-- | Modules/zipimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 69b2881..fd139f2 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -203,7 +203,7 @@ zipimporter_repr(ZipImporter *self) PyOS_snprintf(buf, sizeof(buf), "<zipimporter object \"%.300s\">", archive); - return PyString_FromString(buf); + return PyUnicode_FromString(buf); } /* return fullname.split(".")[-1] */ |