Skip to content

Commit 1c209e3

Browse files
authored
Remove redundant var in PyErr_NewException() (pythonGH-20850)
1 parent b3e6783 commit 1c209e3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/errors.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
10791079
{
10801080
PyThreadState *tstate = _PyThreadState_GET();
10811081
PyObject *modulename = NULL;
1082-
PyObject *classname = NULL;
10831082
PyObject *mydict = NULL;
10841083
PyObject *bases = NULL;
10851084
PyObject *result = NULL;
@@ -1125,7 +1124,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
11251124
failure:
11261125
Py_XDECREF(bases);
11271126
Py_XDECREF(mydict);
1128-
Py_XDECREF(classname);
11291127
Py_XDECREF(modulename);
11301128
return result;
11311129
}

0 commit comments

Comments
 (0)