Commit 66aa9874 authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

parent 2a9ab506
...@@ -27,7 +27,7 @@ static PyObject* __Pyx_Globals(void) { ...@@ -27,7 +27,7 @@ static PyObject* __Pyx_Globals(void) {
for (i = 0; i < PyList_GET_SIZE(names); i++) { for (i = 0; i < PyList_GET_SIZE(names); i++) {
PyObject* name = PyList_GET_ITEM(names, i); PyObject* name = PyList_GET_ITEM(names, i);
if (!PyDict_Contains(globals, name)) { if (!PyDict_Contains(globals, name)) {
PyObject* value = PyObject_GetAttr($module_cname, PyList_GET_ITEM(names, i)); PyObject* value = PyObject_GetAttr($module_cname, name);
if (!value) if (!value)
goto bad; goto bad;
if (PyDict_SetItem(globals, name, value) < 0) { if (PyDict_SetItem(globals, name, value) < 0) {
......
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