From 3fe8216f338317089aa727241f70de71681f2e0a Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Sat, 3 May 2008 01:37:08 +0000 Subject: [PATCH] Fixed a bug in the representation of self-referential tuples. --- Objects/tupleobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 9a53cfa32f9..819253c7c44 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);