Skip to content

Commit 9230780

Browse files
committed
fix review comments
1 parent d0fe6f3 commit 9230780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/polynomial/multi_polynomial_libsingular.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,7 @@ cdef class MPolynomial_libsingular(MPolynomial_libsingular_base):
29932993
sage: f.monomial_coefficient(x - x)
29942994
Traceback (most recent call last):
29952995
...
2996-
ValueError: mon must not be equal to 0.
2996+
ValueError: mon must not be equal to 0
29972997
"""
29982998
cdef poly *p = self._poly
29992999
cdef poly *m = mon._poly
@@ -3002,8 +3002,8 @@ cdef class MPolynomial_libsingular(MPolynomial_libsingular_base):
30023002
if mon._parent is not self._parent:
30033003
raise TypeError("mon must have same parent as self.")
30043004

3005-
if mon._poly == NULL:
3006-
raise ValueError("mon must not be equal to 0.")
3005+
if mon._poly is NULL:
3006+
raise ValueError("mon must not be equal to 0")
30073007

30083008
while p:
30093009
if p_ExpVectorEqual(p, m, r) == 1:

0 commit comments

Comments
 (0)