]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make array.typecode a unicode string.
authorWalter Dörwald <walter@livinglogic.de>
Fri, 22 Jun 2007 12:21:53 +0000 (12:21 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 22 Jun 2007 12:21:53 +0000 (12:21 +0000)
Modules/arraymodule.c

index 1936da0b1eac7c160ddfe4f4d8c047547c1a46a5..585ed2f2d34789b6719140b59703809697bddce3 100644 (file)
@@ -1377,7 +1377,7 @@ PyDoc_STRVAR(fromstring_doc,
 "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 @@ static PyObject *
 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 *