From: Alexandre Vassalotti Date: Sat, 3 May 2008 01:37:08 +0000 (+0000) Subject: Fixed a bug in the representation of self-referential tuples. X-Git-Tag: v3.0a5~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fe8216f338317089aa727241f70de71681f2e0a;p=thirdparty%2FPython%2Fcpython.git Fixed a bug in the representation of self-referential tuples. --- diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 9a53cfa32f9a..819253c7c44a 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -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);