8000 Fix repr · python/cpython@62ace68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 62ace68

Browse files
committed
Fix repr
1 parent 174b045 commit 62ace68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/interpolationobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ static PyObject *
103103
interpolation_repr(PyObject *op)
104104
{
105105
interpolationobject *self = interpolationobject_CAST(op);
106-
return PyUnicode_FromFormat("%T(%R, %R, %R, %R)",
107-
self, self->value, self->expression,
106+
return PyUnicode_FromFormat("%s(%R, %R, %R, %R)",
107+
_PyType_Name(Py_TYPE(self)), self->value, self->expression,
108108
self->conversion, self->format_spec);
109109
}
110110

0 commit comments

Comments
 (0)
0