diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-29 07:05:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-29 07:05:39 (GMT) |
commit | f94d1eee7499bc00fe78eab8e3d43cc381ab2407 (patch) | |
tree | 0aa4ca8d38af09acd7575a00fda84986cb26570c /Modules | |
parent | 684ef2c88882d4c1aaf325fd0a5845740f22c8b7 (diff) | |
download | cpython-f94d1eee7499bc00fe78eab8e3d43cc381ab2407.zip cpython-f94d1eee7499bc00fe78eab8e3d43cc381ab2407.tar.gz cpython-f94d1eee7499bc00fe78eab8e3d43cc381ab2407.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_asynciomodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 6278b25..18dd37b 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; } |