[pygobject/benzea/tmp] fixup! async: Add a new async type that is an awaitable for a _finish call




commit 45618fd4e3d1cb782ee18c473c50753b7e3e4c1e
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Nov 26 15:17:08 2021 +0100

    fixup! async: Add a new async type that is an awaitable for a _finish call

 gi/pygi-async.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gi/pygi-async.c b/gi/pygi-async.c
index d40a609d..fb57b0dd 100644
--- a/gi/pygi-async.c
+++ b/gi/pygi-async.c
@@ -157,8 +157,7 @@ async_add_done_callback (PyGIAsync *self, PyObject *args, PyObject *kwargs)
     else
         Py_INCREF(callback.context);
 #else
-    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:add_done_callback", NULL,
-                                     &callback.func))
+    if (!PyArg_ParseTuple(args, kwargs, "O:add_done_callback", &callback.func))
         return NULL;
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]