commit | 58a96efde53a52d501cdf6db810fedb1d86ecdb9 | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Tue Jan 12 01:34:43 2010 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Tue Jan 12 01:34:43 2010 +0000 |
tree | 2e9337f063aa4e268a4f5799e200e984d52681e6 | |
parent | ae7731af45263a5951c20265d704df69d603a6d9 [diff] [blame] |
Fixed repr of dictionary views.
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 @@ 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;