summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-06-13 14:58:12 +0800
committerGitHub <noreply@github.com>2020-06-13 15:58:12 +0900
commit1c209e3b53b6929747fe3b79398bfbaeabb72d92 (patch)
tree5a5f9accb1cc8bd07edfbef3d9710ecf66b37668 /Python/errors.c
parentb3e6783423f58597419abae343dd1d5dcc02a7e3 (diff)
downloadcpython-git-1c209e3b53b6929747fe3b79398bfbaeabb72d92.tar.gz
Remove redundant var in PyErr_NewException() (GH-20850)
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 5d1725679c..cc00ae4a54 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -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;
@@ -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;
}