Issue #28544: Fix inefficient call to _PyObject_CallMethodId()
"()" format string creates an empty list of argument but requires extra work to parse the format string.
This commit is contained in:
parent
684ef2c888
commit
f94d1eee74
|
@ -152,7 +152,7 @@ future_init(FutureObj *fut, PyObject *loop)
|
|||
Py_CLEAR(fut->fut_loop);
|
||||
fut->fut_loop = loop;
|
||||
|
||||
res = _PyObject_CallMethodId(fut->fut_loop, &PyId_get_debug, "()", NULL);
|
||||
res = _PyObject_CallMethodId(fut->fut_loop, &PyId_get_debug, NULL);
|
||||
if (res == NULL) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue