Skip to content

Commit

Permalink
Remove redundant var in PyErr_NewException() (GH-20850)
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 authored Jun 13, 2020
1 parent b3e6783 commit 1c209e3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Python/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
{
PyThreadState *tstate = _PyThreadState_GET();
PyObject *modulename = NULL;
PyObject *classname = NULL;
PyObject *mydict = NULL;
PyObject *bases = NULL;
PyObject *result = NULL;
Expand Down Expand Up @@ -1125,7 +1124,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
failure:
Py_XDECREF(bases);
Py_XDECREF(mydict);
Py_XDECREF(classname);
Py_XDECREF(modulename);
return result;
}
Expand Down

0 comments on commit 1c209e3

Please sign in to comment.