mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
This commit is contained in:
parent
38f44b4a4a
commit
762f93ff2e
37 changed files with 154 additions and 132 deletions
|
@ -713,7 +713,7 @@ void _pysqlite_final_callback(sqlite3_context* context)
|
|||
PyErr_Fetch(&exception, &value, &tb);
|
||||
restore = 1;
|
||||
|
||||
function_result = _PyObject_CallMethodId(*aggregate_instance, &PyId_finalize, NULL);
|
||||
function_result = _PyObject_CallMethodIdNoArgs(*aggregate_instance, &PyId_finalize);
|
||||
|
||||
Py_DECREF(*aggregate_instance);
|
||||
|
||||
|
@ -1275,7 +1275,7 @@ PyObject* pysqlite_connection_execute(pysqlite_Connection* self, PyObject* args)
|
|||
PyObject* result = 0;
|
||||
PyObject* method = 0;
|
||||
|
||||
cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL);
|
||||
cursor = _PyObject_CallMethodIdNoArgs((PyObject*)self, &PyId_cursor);
|
||||
if (!cursor) {
|
||||
goto error;
|
||||
}
|
||||
|
@ -1304,7 +1304,7 @@ PyObject* pysqlite_connection_executemany(pysqlite_Connection* self, PyObject* a
|
|||
PyObject* result = 0;
|
||||
PyObject* method = 0;
|
||||
|
||||
cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL);
|
||||
cursor = _PyObject_CallMethodIdNoArgs((PyObject*)self, &PyId_cursor);
|
||||
if (!cursor) {
|
||||
goto error;
|
||||
}
|
||||
|
@ -1333,7 +1333,7 @@ PyObject* pysqlite_connection_executescript(pysqlite_Connection* self, PyObject*
|
|||
PyObject* result = 0;
|
||||
PyObject* method = 0;
|
||||
|
||||
cursor = _PyObject_CallMethodId((PyObject*)self, &PyId_cursor, NULL);
|
||||
cursor = _PyObject_CallMethodIdNoArgs((PyObject*)self, &PyId_cursor);
|
||||
if (!cursor) {
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue