File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/sage/rings/polynomial Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments