aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-04-28 16:17:30 -0700
committerZac Medico <zmedico@gentoo.org>2018-04-28 16:17:30 -0700
commit98e5852117cbda19b4f4266eb71a053dced64a88 (patch)
tree096aac8963cacb9fdc6ad5554f3a402ecc2b8338
parentPortageKeyError: fix __unicode__ AttributeError under python2.7 (diff)
downloadportage-98e58521.tar.gz
portage-98e58521.tar.bz2
portage-98e58521.zip
AsyncTaskFuture: fix deprecated _wait usage (bug 653856)
Fix _done_callback to use _async_wait() instead of wait(). Bug: https://bugs.gentoo.org/653856
-rw-r--r--pym/portage/util/_async/AsyncTaskFuture.py5
1 files changed, 4 insertions, 1 deletions
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