From c8b9aaf25d92aad524586d19e1af3ac51c15f680 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 22 Oct 2021 17:44:28 -0700 Subject: [PATCH] src/sage/ext/fast_callable.pyx: Fix up imports --- src/sage/ext/fast_callable.pyx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/sage/ext/fast_callable.pyx b/src/sage/ext/fast_callable.pyx index 9a40b7a25e3..9e3f206ead8 100644 --- a/src/sage/ext/fast_callable.pyx +++ b/src/sage/ext/fast_callable.pyx @@ -468,40 +468,33 @@ def fast_callable(x, domain=None, vars=None, et = x._fast_callable_(etb) if isinstance(domain, sage.rings.abc.RealField): - import sage.ext.interpreters.wrapper_rr - builder = sage.ext.interpreters.wrapper_rr.Wrapper_rr - + from sage.ext.interpreters.wrapper_rr import Wrapper_rr as builder str = InstructionStream(sage.ext.interpreters.wrapper_rr.metadata, len(vars), domain) elif isinstance(domain, sage.rings.abc.ComplexField): - import sage.ext.interpreters.wrapper_cc - builder = sage.ext.interpreters.wrapper_cc.Wrapper_cc + from sage.ext.interpreters.wrapper_cc import Wrapper_cc as builder str = InstructionStream(sage.ext.interpreters.wrapper_cc.metadata, len(vars), domain) elif isinstance(domain, sage.rings.abc.RealDoubleField) or domain is float: - import sage.ext.interpreters.wrapper_rdf - builder = sage.ext.interpreters.wrapper_rdf.Wrapper_rdf + from sage.ext.interpreters.wrapper_rdf import Wrapper_rdf as builder str = InstructionStream(sage.ext.interpreters.wrapper_rdf.metadata, len(vars), domain) elif isinstance(domain, sage.rings.abc.ComplexDoubleField): - import sage.ext.interpreters.wrapper_cdf - builder = sage.ext.interpreters.wrapper_cdf.Wrapper_cdf + from sage.ext.interpreters.wrapper_cdf import Wrapper_cdf as builder str = InstructionStream(sage.ext.interpreters.wrapper_cdf.metadata, len(vars), domain) elif domain is None: - import sage.ext.interpreters.wrapper_py - builder = sage.ext.interpreters.wrapper_py.Wrapper_py + from sage.ext.interpreters.wrapper_py import Wrapper_py as builder str = InstructionStream(sage.ext.interpreters.wrapper_py.metadata, len(vars)) else: - import sage.ext.interpreters.wrapper_el - builder = sage.ext.interpreters.wrapper_el.Wrapper_el + from sage.ext.interpreters.wrapper_el import Wrapper_el as builder str = InstructionStream(sage.ext.interpreters.wrapper_el.metadata, len(vars), domain)