diff --git a/python/sage_helper.py b/python/sage_helper.py index 9bc6861b..3a0e82fd 100644 --- a/python/sage_helper.py +++ b/python/sage_helper.py @@ -35,7 +35,7 @@ def sage_method(function): from sage.all import RealField, ComplexField, gcd, prod, powerset from sage.all import MatrixSpace, matrix, vector, ZZ from sage.all import Integer, Rational, QQ, RR, CC, SR - from sage.all import is_RealIntervalFieldElement, sqrt + from sage.all import sqrt except ImportError: # Modularized Sage library from sage.arith.misc import gcd @@ -51,10 +51,10 @@ def sage_method(function): from sage.rings.integer_ring import ZZ from sage.rings.rational import Rational from sage.rings.rational_field import QQ - from sage.rings.real_mpfi import is_RealIntervalFieldElement from sage.rings.real_mpfr import RealField, RR from sage.symbolic.ring import SR + from sage.rings.real_mpfi import is_RealIntervalFieldElement from sage.structure.sage_object import SageObject else: