Skip to content

Commit

Permalink
Fix syntax warnings on CPython 3.8
Browse files Browse the repository at this point in the history
Closes #444
  • Loading branch information
skirpichev committed Mar 20, 2019
1 parent 4e00830 commit 4990fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpmath/ctx_mp_python.py
Expand Up @@ -889,7 +889,7 @@ def fsum(ctx, terms, absolute=False, squared=False):
s = ctx.make_mpc((s, mpf_sum(imag, prec, rnd)))
else:
s = ctx.make_mpf(s)
if other is 0:
if other == 0:
return s
else:
return s + other
Expand Down Expand Up @@ -983,7 +983,7 @@ def fdot(ctx, A, B=None, conjugate=False):
s = ctx.make_mpc((s, mpf_sum(imag, prec, rnd)))
else:
s = ctx.make_mpf(s)
if other is 0:
if other == 0:
return s
else:
return s + other
Expand Down

0 comments on commit 4990fb5

Please sign in to comment.