Browse Source
Remove redundant var in PyErr_NewException() (GH-20850)
pull/20854/head
Hai Shi
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
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; |
|
|
|
} |
|
|
|
|