Kaydet (Commit) 1630520e authored tarafından Thomas Heller's avatar Thomas Heller

Fix an obvious bug.

üst 77f4438f
......@@ -221,7 +221,7 @@ static PyMethodDef xx_methods[] = {
DL_EXPORT(void)
initxx(void)
{
PyObject *m, *d;
PyObject *m;
/* Initialize the type of the new type object here; doing it here
* is required for portability to Windows without requiring C++. */
......@@ -237,5 +237,5 @@ initxx(void)
return;
}
Py_INCREF(ErrorObject);
PyModule_AddObject(d, "error", ErrorObject);
PyModule_AddObject(m, "error", ErrorObject);
}
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