Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/interfaces/qepcad.py: Remove use of is_SymbolicEquation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Oct 17, 2021
1 parent a287531 commit c9861d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sage/interfaces/qepcad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c9861d1

Please sign in to comment.