diff options
-rw-r--r-- | Modules/_sqlite/connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 64bd53a..63b0fb9 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -1494,9 +1494,9 @@ pysqlite_collation_callback( goto finally; /* failed to allocate strings */ } - retval = PyObject_CallFunctionObjArgs(callback, string1, string2, NULL); - - if (!retval) { + PyObject *args[] = { string1, string2 }; // Borrowed refs. + retval = PyObject_Vectorcall(callback, args, 2, NULL); + if (retval == NULL) { /* execution failed */ goto finally; } |