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

Commit

Permalink
trac 25978: don't try to compare None with an int
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Jul 30, 2018
1 parent f608d82 commit d8f9668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/polynomial/multi_polynomial_ring_base.pyx
Expand Up @@ -938,7 +938,7 @@ cdef class MPolynomialRing_base(sage.rings.ring.CommutativeRing):

counts, total = self._precomp_counts(n, degree)

if terms > total:
if terms and terms > total:
terms = total

if terms is None:
Expand Down

0 comments on commit d8f9668

Please sign in to comment.