py3: Fix no init func in chmlib module

This commit is contained in:
Kovid Goyal 2019-04-02 18:08:36 +05:30
parent 34192f9bf9
commit 237c64b9da
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3749,10 +3749,10 @@ static swig_module_info swig_module = {swig_types, 8, 0, 0, 0, 0};
@(target):= _chmlib.so @(target):= _chmlib.so
------------------------------------------------*/ ------------------------------------------------*/
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
# define SWIG_init PyInit__chmlib # define SWIG_init PyInit_chmlib
#else #else
# define SWIG_init init_chmlib # define SWIG_init initchmlib
#endif #endif
#define SWIG_name "chmlib" #define SWIG_name "chmlib"
@ -5754,7 +5754,7 @@ PyObject*
#else #else
void void
#endif #endif
initchmlib(void) { SWIG_init(void) {
PyObject *m, *d, *md; PyObject *m, *d, *md;
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef SWIG_module = { static struct PyModuleDef SWIG_module = {