From 3aa9d334921ac7d9cf5eed18f6ac9b72df0c6e3a Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 22 Nov 2016 16:46:19 -0500 Subject: [PATCH] buildcomponent: remove unnecessary closure --- buildman/component/buildcomponent.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/buildman/component/buildcomponent.py b/buildman/component/buildcomponent.py index 1f4d364ae..14df0c6aa 100644 --- a/buildman/component/buildcomponent.py +++ b/buildman/component/buildcomponent.py @@ -159,10 +159,7 @@ class BuildComponent(BaseComponent): def build_complete_callback(result): """ This function is used to execute a coroutine as the callback. """ - @trollius.coroutine - def closure(): - yield From(self._build_complete(result)) - trollius.ensure_future(closure()) + trollius.ensure_future(self._build_complete(result)) self.call("io.quay.builder.build", **build_arguments).add_done_callback(build_complete_callback)