Skip to content

Commit 1bcddeb

Browse files
committed
Revert "Remove unused name variable with new %Y format"
This reverts commit 4801399.
1 parent 4801399 commit 1bcddeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/exceptions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ BaseExceptionGroup_repr(PyObject *op)
10801080
excs_orig = Py_NewRef(self->excs);
10811081
}
10821082

1083+
const char *name = _PyType_Name(Py_TYPE(self));
10831084
PyObject *repr = PyUnicode_FromFormat(
10841085
"%T(%R, %R)", self, self->msg, excs_orig);
10851086

0 commit comments

Comments
 (0)