From b050a22b8a0bc569ee357164c4c74c407dcc6bfe Mon Sep 17 00:00:00 2001 From: Stephen Herbein Date: Wed, 20 Feb 2019 14:30:14 -0800 Subject: [PATCH] python: break circular import between future/rpc/handle --- src/bindings/python/flux/future.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/flux/future.py b/src/bindings/python/flux/future.py index 231743e42069..87c27e323ae4 100644 --- a/src/bindings/python/flux/future.py +++ b/src/bindings/python/flux/future.py @@ -10,7 +10,6 @@ import errno -import flux from flux.util import check_future_error from flux.wrapper import Wrapper, WrapperPimpl from flux.core.inner import ffi, lib, raw @@ -90,10 +89,13 @@ def get(self): return ffi.buffer(result[0]) def get_flux(self): + # pylint: disable=cyclic-import + import flux.core.handle + flux_handle = self.pimpl.get_flux() if flux_handle == ffi.NULL: return None - return flux.Flux(handle=flux_handle) + return flux.core.handle.Flux(handle=flux_handle) def get_reactor(self): return self.pimpl.get_reactor()