Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r67144:87d6e936413b
Date: 2013-09-30 07:46 -0700
http://bitbucket.org/pypy/pypy/changeset/87d6e936413b/

Log:    Use the simpler isfinite in another place

diff --git a/pypy/module/math/interp_math.py b/pypy/module/math/interp_math.py
--- a/pypy/module/math/interp_math.py
+++ b/pypy/module/math/interp_math.py
@@ -335,8 +335,7 @@
         del partials[added:]
         if v != 0.0:
             if not rfloat.isfinite(v):
-                if (not rfloat.isinf(original) and
-                    not rfloat.isnan(original)):
+                if rfloat.isfinite(original):
                     raise OperationError(space.w_OverflowError,
                                          space.wrap("intermediate overflow"))
                 if rfloat.isinf(original):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to