In Python3 we need to return the module
This commit is contained in:
parent
ca2dc8f9cf
commit
f2057962ff
@ -138,4 +138,5 @@ PyInit_bitmaps()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module bitmaps");
|
||||
return m;
|
||||
}
|
||||
|
@ -95,5 +95,6 @@ PyInit_box()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module box");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -492,5 +492,6 @@ PyInit_browser()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module browser");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -375,5 +375,6 @@ PyInit_button()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module button");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -351,5 +351,6 @@ PyInit_choice()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module choice");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -112,5 +112,6 @@ PyInit_clock()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module clock");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -210,5 +210,6 @@ PyInit_counter()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module counter");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -210,5 +210,6 @@ PyInit_dial()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module dial");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -681,7 +681,7 @@ static struct PyModuleDef moduledef =
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
PyInit_forms()
|
||||
PyInit_forms(void)
|
||||
{
|
||||
PyObject *m, *d;
|
||||
|
||||
@ -698,5 +698,6 @@ PyInit_forms()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module forms");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -93,5 +93,6 @@ PyInit_frame()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module frame");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -505,5 +505,6 @@ PyInit_goodies()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module goodies");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -252,5 +252,6 @@ PyInit_input()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module input");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -312,5 +312,6 @@ PyInit_menu()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module menu");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -519,5 +519,6 @@ PyInit_objects()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module objects");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -136,5 +136,6 @@ PyInit_pixmaps()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module pixmaps");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -379,5 +379,6 @@ PyInit_popups()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module popups");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -311,5 +311,6 @@ PyInit_positioner()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module positioner");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -272,5 +272,6 @@ PyInit_slider()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module slider");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -91,5 +91,6 @@ PyInit_text()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module text");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -132,5 +132,6 @@ PyInit_timer()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("can't initialize module timer");
|
||||
return m;
|
||||
}
|
||||
|
||||
|
@ -85,6 +85,6 @@ static struct PyModuleDef moduledef =
|
||||
PyMODINIT_FUNC
|
||||
PyInit_xforms()
|
||||
{
|
||||
PyModule_Create(&moduledef);
|
||||
return PyModule_Create(&moduledef);
|
||||
}
|
||||
|
||||
|
@ -448,4 +448,5 @@ PyInit_xyplot ()
|
||||
/* Check for errors */
|
||||
if (PyErr_Occurred ())
|
||||
Py_FatalError ("can't initialize module xyplot");
|
||||
return m;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user