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