[Python-checkins] cpython (merge 3.2 -> default): merge 3.2

benjamin.peterson python-checkins at python.org
Tue Mar 13 22:46:49 CET 2012


http://hg.python.org/cpython/rev/b0d3b441f568
changeset:   75606:b0d3b441f568
parent:      75599:d731dcda2611
parent:      75605:f0265b76fecd
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Mar 13 16:13:35 2012 -0500
summary:
  merge 3.2

files:
  Modules/mathmodule.c |  14 +++++++-------
  1 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -745,13 +745,13 @@
         return NULL;
     }
     if (Py_IS_INFINITY(r) && Py_IS_FINITE(x)) {
-                    if (can_overflow)
-                            PyErr_SetString(PyExc_OverflowError,
-                                    "math range error"); /* overflow */
-            else
-                PyErr_SetString(PyExc_ValueError,
-                    "math domain error"); /* singularity */
-            return NULL;
+        if (can_overflow)
+            PyErr_SetString(PyExc_OverflowError,
+                            "math range error"); /* overflow */
+        else
+            PyErr_SetString(PyExc_ValueError,
+                            "math domain error"); /* singularity */
+        return NULL;
     }
     if (Py_IS_FINITE(r) && errno && is_error(r))
         /* this branch unnecessary on most platforms */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list