PyObject_Repr(): add missing ">" back at end of format string: "<%s

object at %p>".
This commit is contained in:
Guido van Rossum 2001-08-30 20:26:05 +00:00
parent 71ebc3359b
commit 21922aa939

View File

@ -212,7 +212,7 @@ PyObject_Repr(PyObject *v)
if (v == NULL)
return PyString_FromString("<NULL>");
else if (v->ob_type->tp_repr == NULL)
return PyString_FromFormat("<%s object at %p",
return PyString_FromFormat("<%s object at %p>",
v->ob_type->tp_name, v);
else {
PyObject *res;