diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-12 01:34:43 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2010-01-12 01:34:43 (GMT) |
commit | 58a96efde53a52d501cdf6db810fedb1d86ecdb9 (patch) | |
tree | 2e9337f063aa4e268a4f5799e200e984d52681e6 /Objects | |
parent | ae7731af45263a5951c20265d704df69d603a6d9 (diff) | |
download | cpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.zip cpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.tar.gz cpython-58a96efde53a52d501cdf6db810fedb1d86ecdb9.tar.bz2 |
Fixed repr of dictionary views.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 3 |
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; |