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/portage/util/_async/
Date: Sat, 28 Apr 2018 23:20:21
Message-Id: 1524957450.98e5852117cbda19b4f4266eb71a053dced64a88.zmedico@gentoo
1 commit: 98e5852117cbda19b4f4266eb71a053dced64a88
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 28 23:17:30 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 28 23:17:30 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=98e58521
7
8 AsyncTaskFuture: fix deprecated _wait usage (bug 653856)
9
10 Fix _done_callback to use _async_wait() instead of wait().
11
12 Bug: https://bugs.gentoo.org/653856
13
14 pym/portage/util/_async/AsyncTaskFuture.py | 5 ++++-
15 1 file changed, 4 insertions(+), 1 deletion(-)
16
17 diff --git a/pym/portage/util/_async/AsyncTaskFuture.py b/pym/portage/util/_async/AsyncTaskFuture.py
18 index ce881ba8d..cdc842b05 100644
19 --- a/pym/portage/util/_async/AsyncTaskFuture.py
20 +++ b/pym/portage/util/_async/AsyncTaskFuture.py
21 @@ -28,9 +28,12 @@ class AsyncTaskFuture(AsynchronousTask):
22 self.returncode = os.EX_OK
23 else:
24 self.returncode = 1
25 - self.wait()
26 + self._async_wait()
27
28 def _wait(self):
29 + """
30 + Deprecated. Use _async_wait() instead.
31 + """
32 if self.returncode is None:
33 self.scheduler.run_until_complete(self.future)
34 return self.returncode