Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/
Date: Sun, 29 Apr 2018 03:55:20
Message-Id: 1524973938.c984e65e743d049c715f66e96bacb4e830922a34.zmedico@gentoo
1 commit: c984e65e743d049c715f66e96bacb4e830922a34
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 29 03:52:18 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 29 03:52:18 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c984e65e
7
8 AsynchronousTask._async_wait: asyncio compat (bug 653856)
9
10 Use call_soon for asyncio compatibility.
11
12 Bug: https://bugs.gentoo.org/653856
13
14 pym/_emerge/AsynchronousTask.py | 6 +-----
15 1 file changed, 1 insertion(+), 5 deletions(-)
16
17 diff --git a/pym/_emerge/AsynchronousTask.py b/pym/_emerge/AsynchronousTask.py
18 index 4e664d00e..9d8df7f5e 100644
19 --- a/pym/_emerge/AsynchronousTask.py
20 +++ b/pym/_emerge/AsynchronousTask.py
21 @@ -94,11 +94,7 @@ class AsynchronousTask(SlotObject):
22 loop recursion (or stack overflow) that synchronous calling of
23 exit listeners can cause. This method is thread-safe.
24 """
25 - self.scheduler.idle_add(self._async_wait_cb)
26 -
27 - def _async_wait_cb(self):
28 - self.wait()
29 - return False
30 + self.scheduler.call_soon(self.wait)
31
32 def cancel(self):
33 """