mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
PyObject_Repr(): add missing ">" back at end of format string: "<%s
object at %p>".
This commit is contained in:
parent
71ebc3359b
commit
21922aa939
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue