diff Modules/arraymodule.c @ 42125:79c2656056f6

Make array.typecode a unicode string.
author Walter Dörwald <walter@livinglogic.de>
date Fri, 22 Jun 2007 12:21:53 +0000
parents ebc87b94e6ea
children 78bc078c7350
line wrap: on
line diff
--- a/Modules/arraymodule.c	Fri Jun 22 12:17:08 2007 +0000
+++ b/Modules/arraymodule.c	Fri Jun 22 12:21:53 2007 +0000
@@ -1377,7 +1377,7 @@
 "fromstring(string)\n\
 \n\
 Appends items from the string, interpreting it as an array of machine\n\
-values,as if it had been read from a file using the fromfile() method).");
+values, as if it had been read from a file using the fromfile() method).");
 
 
 static PyObject *
@@ -1461,7 +1461,7 @@
 array_get_typecode(arrayobject *a, void *closure)
 {
 	char tc = a->ob_descr->typecode;
-	return PyString_FromStringAndSize(&tc, 1);
+	return PyUnicode_FromStringAndSize(&tc, 1);
 }
 
 static PyObject *