Skip to content

Commit c80e056

Browse files
committed
first commit
1 parent 7f29270 commit c80e056

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Misc/NEWS.d/next/Core_and_Builtins/2023-02-13-21-26-54.gh-issue-74185.Sk3O7m.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ static PyObject *
18681868
ImportError_repr(PyImportErrorObject *self)
18691869
{
18701870
int hasargs = PyTuple_GET_SIZE(((PyBaseExceptionObject *)self)->args) != 0;
1871-
PyObject *r = BaseException_repr((PyBaseExceptionObject *)self);
1871+
PyObject *r = BaseException_repr((PyObject *)self);
18721872
if (r && (self->name || self->path)) {
18731873
/* remove ')' */
18741874
Py_SETREF(r, PyUnicode_Substring(r, 0, PyUnicode_GET_LENGTH(r) - 1));

0 commit comments

Comments
 (0)