]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed a bug in the representation of self-referential tuples.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Sat, 3 May 2008 01:37:08 +0000 (01:37 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Sat, 3 May 2008 01:37:08 +0000 (01:37 +0000)
Objects/tupleobject.c

index 9a53cfa32f9a0912d7eddb2ad1e504e761de7a6a..819253c7c44a9a5bcc63155b8d104d81cf69183e 100644 (file)
@@ -201,7 +201,7 @@ tuplerepr(PyTupleObject *v)
           possible within a type. */
        i = Py_ReprEnter((PyObject *)v);
        if (i != 0) {
-               return i > 0 ? PyString_FromString("(...)") : NULL;
+               return i > 0 ? PyUnicode_FromString("(...)") : NULL;
        }
 
        pieces = PyTuple_New(n);