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