]> granicus.if.org Git - python/commitdiff
Revert the temporary change in r62624
authorMark Dickinson <dickinsm@gmail.com>
Fri, 9 May 2008 14:10:27 +0000 (14:10 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Fri, 9 May 2008 14:10:27 +0000 (14:10 +0000)
Modules/mathmodule.c

index 6fc7bb8d251d3e66d5c9f6a4ee519dd44194b033..fffb6305a260b2aca86b8df6fe2ba8b67019fe94 100644 (file)
@@ -167,7 +167,6 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
                    int can_overflow)
 {
        double x, r;
-       char err_message[150];
        x = PyFloat_AsDouble(arg);
        if (x == -1.0 && PyErr_Occurred())
                return NULL;
@@ -184,16 +183,9 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
                        if (can_overflow)
                                PyErr_SetString(PyExc_OverflowError,
                                        "math range error (overflow)");
-                       else {
-                               /* temporary code to include the inputs
-                                  and outputs to func in the error
-                                  message */
-                               sprintf(err_message,
-                                       "math domain error (singularity) "
-                                       "%.17g -> %.17g",
-                                       x, r);
-                               PyErr_SetString(PyExc_ValueError, err_message);
-                       }
+                       else
+                               PyErr_SetString(PyExc_ValueError,
+                                       "math domain error (singularity)");
                        return NULL;
        }
        if (Py_IS_FINITE(r) && errno && is_error(r))