Skip to content

Commit

Permalink
src/sage/rings/polynomial/multi_polynomial_libsingular.pyx: Replace p…
Browse files Browse the repository at this point in the history
…bori import
  • Loading branch information
mkoeppe committed Oct 7, 2023
1 parent 39937b9 commit f5c6196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/polynomial/multi_polynomial_libsingular.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ from sage.libs.singular.ring cimport singular_ring_new, singular_ring_reference,

# polynomial imports
from sage.rings.polynomial.multi_polynomial_ring import MPolynomialRing_polydict, MPolynomialRing_polydict_domain
from sage.rings.polynomial.multi_polynomial_ring_base import BooleanPolynomialRing_base
from sage.rings.polynomial.multi_polynomial_element import MPolynomial_polydict
from sage.rings.polynomial.multi_polynomial_ideal import MPolynomialIdeal
from sage.rings.polynomial.polydict cimport ETuple
Expand Down Expand Up @@ -948,8 +949,7 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base):
raise
return new_MP(self, _p)

from sage.rings.polynomial.pbori.pbori import BooleanPolynomial
if isinstance(element, BooleanPolynomial):
if isinstance(element, Element) and isinstance(element.parent(), BooleanPolynomialRing_base):
if element.constant():
if element:
return self._one_element
Expand Down

0 comments on commit f5c6196

Please sign in to comment.