diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-03 01:37:08 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-03 01:37:08 (GMT) |
commit | 3fe8216f338317089aa727241f70de71681f2e0a (patch) | |
tree | 2c2cf19e81e9df90e3d448dc811a32c2e5b208db /Objects/tupleobject.c | |
parent | 73eada3287c2fc9b2700e2286b8811ae6454a52a (diff) | |
download | cpython-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.c | 2 |
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); |