Make array.typecode a unicode string.
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 1936da0..585ed2f 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -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 *