[pygobject/benzea/tmp] fixup! fixup! async: Add a new async type that is an awaitable for a _finish call
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/benzea/tmp] fixup! fixup! async: Add a new async type that is an awaitable for a _finish call
- Date: Tue, 28 Dec 2021 15:31:47 +0000 (UTC)
commit 039885bf737b76f1209a441ca17e882d6b0d48cc
Author: Benjamin Berg <bberg redhat com>
Date: Tue Dec 28 16:31:39 2021 +0100
fixup! fixup! async: Add a new async type that is an awaitable for a _finish call
gi/pygi-async.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-async.c b/gi/pygi-async.c
index a6d4a5a3..2f57ee6e 100644
--- a/gi/pygi-async.c
+++ b/gi/pygi-async.c
@@ -159,7 +159,7 @@ async_add_done_callback (PyGIAsync *self, PyObject *args, PyObject *kwargs)
#ifndef PYPY_VERSION
callback.context = PyContext_CopyCurrent ();
#else
- callback.context = PyObject_CallObject (contextvars_copy_context, NULL);;
+ callback.context = PyObject_CallObject (contextvars_copy_context, NULL);
#endif
else
Py_INCREF(callback.context);
@@ -633,7 +633,7 @@ int pygi_async_register_types(PyObject *module) {
goto fail;
}
- contextvars_copy_context = PyObject_GetAttrString(asyncio, "copy_context");
+ contextvars_copy_context = PyObject_GetAttrString(contextvars, "copy_context");
if (contextvars_copy_context == NULL)
goto fail;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]