summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2010-01-12 01:34:43 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2010-01-12 01:34:43 (GMT)
commit58a96efde53a52d501cdf6db810fedb1d86ecdb9 (patch)
tree2e9337f063aa4e268a4f5799e200e984d52681e6 /Objects
parentae7731af45263a5951c20265d704df69d603a6d9 (diff)
downloadcpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.zip
cpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.tar.gz
cpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.tar.bz2
Fixed repr of dictionary views.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 9f46dfa..b20d6f3 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2886,7 +2886,8 @@ dictview_repr(dictviewobject *dv)
return NULL;
seq_str = PyObject_Repr(seq);
- result = PyString_FromFormat("%s(%s)", Py_TYPE(dv)->tp_name, seq_str);
+ result = PyString_FromFormat("%s(%s)", Py_TYPE(dv)->tp_name,
+ PyString_AS_STRING(seq_str));
Py_DECREF(seq_str);
Py_DECREF(seq);
return result;