Use PyObject_CallObject() instead of _PyObject_CallNoArg()
Also fix type setup in prepare protocols for newer pythons.
This commit is contained in:
parent
6b1ceca0ba
commit
1e7c243499
2 changed files with 5 additions and 4 deletions
|
|
@ -77,7 +77,8 @@ PyTypeObject pysqlite_PrepareProtocolType= {
|
|||
|
||||
extern int pysqlite_prepare_protocol_setup_types(void)
|
||||
{
|
||||
int rc;
|
||||
pysqlite_PrepareProtocolType.tp_new = PyType_GenericNew;
|
||||
Py_TYPE(&pysqlite_PrepareProtocolType)= &PyType_Type;
|
||||
return PyType_Ready(&pysqlite_PrepareProtocolType);
|
||||
rc = PyType_Ready(&pysqlite_PrepareProtocolType);
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue