Skip to content

Commit

Permalink
Update sympy/mpmath/ctx_iv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmars15 committed Nov 30, 2011
1 parent 746c52d commit ee49f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sympy/mpmath/ctx_iv.py
Expand Up @@ -108,7 +108,7 @@ def _compare(s, t, cmpfun):
if not hasattr(t, "_mpi_"): if not hasattr(t, "_mpi_"):
try: try:
t = s.ctx.convert(t) t = s.ctx.convert(t)
except (ValueError, TypeError): except:
return NotImplemented return NotImplemented
return cmpfun(s._mpi_, t._mpi_) return cmpfun(s._mpi_, t._mpi_)


Expand Down Expand Up @@ -192,7 +192,7 @@ def _compare(s, t, ne=False):
if not isinstance(t, s.ctx._types): if not isinstance(t, s.ctx._types):
try: try:
t = s.ctx.convert(t) t = s.ctx.convert(t)
except (ValueError, TypeError): except:
return NotImplemented return NotImplemented
if hasattr(t, '_mpi_'): if hasattr(t, '_mpi_'):
tval = t._mpi_, mpi_zero tval = t._mpi_, mpi_zero
Expand Down

0 comments on commit ee49f60

Please sign in to comment.