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:
Victor Stinner 2016-10-29 09:05:39 +02:00
parent 684ef2c888
commit f94d1eee74
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}