diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-22 12:21:53 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-22 12:21:53 (GMT) |
commit | 93b30b5b821d2719b5903024b461ec54e3658145 (patch) | |
tree | ad0876b4d9570c26b0ca454488f9c3c87dc9d740 | |
parent | 2233d27a3f9c946a1c9e3a7dd45728d819170bc0 (diff) | |
download | cpython-93b30b5b821d2719b5903024b461ec54e3658145.zip cpython-93b30b5b821d2719b5903024b461ec54e3658145.tar.gz cpython-93b30b5b821d2719b5903024b461ec54e3658145.tar.bz2 |
Make array.typecode a unicode string.
-rw-r--r-- | Modules/arraymodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ 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 * |