Skip to content

Commit 4885a6b

Browse files
dr-carlospicnixz
andauthored
Update code style in exceptions.c
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 2fca592 commit 4885a6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,7 @@ BaseExceptionGroup_repr(PyObject *op)
10821082

10831083
const char *name = _PyType_Name(Py_TYPE(self));
10841084
PyObject *repr = PyUnicode_FromFormat(
1085-
"%s(%R, %R)", name,
1086-
self->msg, excs_orig);
1085+
"%T(%R, %R)", self, self->msg, excs_orig);
10871086

10881087
Py_DECREF(excs_orig);
10891088
return repr;

0 commit comments

Comments
 (0)