From f94d1eee7499bc00fe78eab8e3d43cc381ab2407 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 29 Oct 2016 09:05:39 +0200 Subject: [PATCH] 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. --- Modules/_asynciomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 6278b256937..18dd37b5a8b 100644 --- a/Modules/_asynciomodule.c +++ b/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; }