Browse Source

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.
pull/9921/head
Victor Stinner 10 years ago
parent
commit
f94d1eee74
  1. 2
      Modules/_asynciomodule.c

2
Modules/_asynciomodule.c

@ -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…
Cancel
Save