mirror of https://github.com/KLayout/klayout.git
Compatibility with other Python version
This commit is contained in:
parent
692e5b4a01
commit
2166437480
|
|
@ -267,7 +267,8 @@ public:
|
|||
|
||||
if (! cls->parent ()) {
|
||||
PyList_Append (m_all_list, c2python (cls->name ()));
|
||||
PyModule_AddObjectRef (mp_module->module (), cls->name ().c_str (), (PyObject *) pt);
|
||||
Py_INCREF ((PyObject *) pt);
|
||||
PyModule_AddObject (mp_module->module (), cls->name ().c_str (), (PyObject *) pt);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue