diff --git a/src/sage/interfaces/qepcad.py b/src/sage/interfaces/qepcad.py index 29baa767b4e..9317b166608 100644 --- a/src/sage/interfaces/qepcad.py +++ b/src/sage/interfaces/qepcad.py @@ -1924,11 +1924,9 @@ def atomic(self, lhs, op='=', rhs=0): if isinstance(lhs, qformula): return lhs - from sage.symbolic.expression import is_SymbolicEquation - if is_SymbolicEquation(lhs): - rhs = lhs.rhs() - op = lhs.operator() - lhs = lhs.lhs() + from sage.structure.element import Expression + if isinstance(lhs, Expression) and lhs.is_relational(): + lhs, op, rhs = lhs.lhs(), lhs.operator(), lhs.rhs() op = self._normalize_op(op)