summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-03 01:37:08 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-03 01:37:08 (GMT)
commit3fe8216f338317089aa727241f70de71681f2e0a (patch)
tree2c2cf19e81e9df90e3d448dc811a32c2e5b208db /Objects/tupleobject.c
parent73eada3287c2fc9b2700e2286b8811ae6454a52a (diff)
downloadcpython-3fe8216f338317089aa727241f70de71681f2e0a.zip
cpython-3fe8216f338317089aa727241f70de71681f2e0a.tar.gz
cpython-3fe8216f338317089aa727241f70de71681f2e0a.tar.bz2
Fixed a bug in the representation of self-referential tuples.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r--Objects/tupleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c
index 9a53cfa..819253c 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);