mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Remove redundant var in PyErr_NewException() (GH-20850)
This commit is contained in:
parent
b3e6783423
commit
1c209e3b53
1 changed files with 0 additions and 2 deletions
|
@ -1079,7 +1079,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
|
||||||
{
|
{
|
||||||
PyThreadState *tstate = _PyThreadState_GET();
|
PyThreadState *tstate = _PyThreadState_GET();
|
||||||
PyObject *modulename = NULL;
|
PyObject *modulename = NULL;
|
||||||
PyObject *classname = NULL;
|
|
||||||
PyObject *mydict = NULL;
|
PyObject *mydict = NULL;
|
||||||
PyObject *bases = NULL;
|
PyObject *bases = NULL;
|
||||||
PyObject *result = NULL;
|
PyObject *result = NULL;
|
||||||
|
@ -1125,7 +1124,6 @@ PyErr_NewException(const char *name, PyObject *base, PyObject *dict)
|
||||||
failure:
|
failure:
|
||||||
Py_XDECREF(bases);
|
Py_XDECREF(bases);
|
||||||
Py_XDECREF(mydict);
|
Py_XDECREF(mydict);
|
||||||
Py_XDECREF(classname);
|
|
||||||
Py_XDECREF(modulename);
|
Py_XDECREF(modulename);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue