Commit 034fc26c authored by Max Bachmann's avatar Max Bachmann Committed by GitHub

Avoid shadowing an outer variable (GH-4147)

parent 3fcd833b
......@@ -131,16 +131,16 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
PyGC_Enable();
#else
if (gc_was_enabled) {
PyObject *t, *v, *tb;
PyErr_Fetch(&t, &v, &tb);
PyObject *tp, *v, *tb;
PyErr_Fetch(&tp, &v, &tb);
ret = __Pyx_PyObject_CallMethod0(gc, PYUNICODE("enable"));
if (likely(ret || r == -1)) {
Py_XDECREF(ret);
// do not overwrite exceptions raised by PyType_Ready() above
PyErr_Restore(t, v, tb);
PyErr_Restore(tp, v, tb);
} else {
// PyType_Ready() succeeded, but gc.enable() failed.
Py_XDECREF(t);
Py_XDECREF(tp);
Py_XDECREF(v);
Py_XDECREF(tb);
r = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment