mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -106,7 +106,7 @@ _pysqlite_get_converter(const char *keystr, Py_ssize_t keylen)
|
|||
if (!key) {
|
||||
return NULL;
|
||||
}
|
||||
upcase_key = _PyObject_CallMethodId(key, &PyId_upper, NULL);
|
||||
upcase_key = _PyObject_CallMethodIdNoArgs(key, &PyId_upper);
|
||||
Py_DECREF(key);
|
||||
if (!upcase_key) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue