commit: 98e5852117cbda19b4f4266eb71a053dced64a88 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sat Apr 28 23:17:30 2018 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sat Apr 28 23:17:30 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=98e58521
AsyncTaskFuture: fix deprecated _wait usage (bug 653856) Fix _done_callback to use _async_wait() instead of wait(). Bug: https://bugs.gentoo.org/653856 pym/portage/util/_async/AsyncTaskFuture.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/util/_async/AsyncTaskFuture.py b/pym/portage/util/_async/AsyncTaskFuture.py index ce881ba8d..cdc842b05 100644 --- a/pym/portage/util/_async/AsyncTaskFuture.py +++ b/pym/portage/util/_async/AsyncTaskFuture.py @@ -28,9 +28,12 @@ class AsyncTaskFuture(AsynchronousTask): self.returncode = os.EX_OK else: self.returncode = 1 - self.wait() + self._async_wait() def _wait(self): + """ + Deprecated. Use _async_wait() instead. + """ if self.returncode is None: self.scheduler.run_until_complete(self.future) return self.returncode
