Commit f7320e37 authored by Max Bachmann's avatar Max Bachmann Committed by GitHub

Fix variable shadowing to assure correct cleanup (GH-4056)

parent 841a2e10
......@@ -25,8 +25,7 @@ static PyObject *__Pyx__ImportDottedModule_Error(PyObject *name, PyObject *parts
if (likely(PyTuple_GET_SIZE(parts_tuple) == count)) {
partial_name = name;
} else {
PyObject *sep;
PyObject *slice = PySequence_GetSlice(parts_tuple, 0, count);
slice = PySequence_GetSlice(parts_tuple, 0, count);
if (unlikely(!slice))
goto bad;
sep = PyUnicode_FromStringAndSize(".", 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