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
1 changed files with 1 additions and 1 deletions

View File

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