Fixed a bug in the representation of self-referential tuples.

This commit is contained in:
Alexandre Vassalotti 2008-05-03 01:37:08 +00:00
parent 73eada3287
commit 3fe8216f33

View 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);