summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-09 11:29:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-09 11:29:18 (GMT)
commit070c4d7ca74f00336c1a959e6fabb4700643d70d (patch)
treea227afca727d09b1427d6bc47764a807c38a812c /Modules/_sqlite
parentec80ba469393397eb8ff2f140e3fc76c944494be (diff)
downloadcpython-070c4d7ca74f00336c1a959e6fabb4700643d70d.zip
cpython-070c4d7ca74f00336c1a959e6fabb4700643d70d.tar.gz
cpython-070c4d7ca74f00336c1a959e6fabb4700643d70d.tar.bz2
Issue #28915: Use _PyObject_CallNoArg()
Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func).
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 4cd3cb3..7bbc15c 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -645,7 +645,7 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
aggregate_instance = (PyObject**)sqlite3_aggregate_context(context, sizeof(PyObject*));
if (*aggregate_instance == 0) {
- *aggregate_instance = PyObject_CallFunction(aggregate_class, NULL);
+ *aggregate_instance = _PyObject_CallNoArg(aggregate_class);
if (PyErr_Occurred()) {
*aggregate_instance = 0;
@@ -933,7 +933,7 @@ static int _progress_handler(void* user_arg)
gilstate = PyGILState_Ensure();
#endif
- ret = PyObject_CallFunction((PyObject*)user_arg, NULL);
+ ret = _PyObject_CallNoArg((PyObject*)user_arg);
if (!ret) {
if (_enable_callback_tracebacks) {