diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-05-09 14:10:27 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-05-09 14:10:27 (GMT) |
commit | b63aff15e8346908b4b01c0c1d0550256c3a5ec7 (patch) | |
tree | 4617fe2e4e26423a60e96be02dc3ad764c756fcc /Modules/mathmodule.c | |
parent | c4352b061a6d6cb35c4364ccfb827ff6c2715553 (diff) | |
download | cpython-b63aff15e8346908b4b01c0c1d0550256c3a5ec7.zip cpython-b63aff15e8346908b4b01c0c1d0550256c3a5ec7.tar.gz cpython-b63aff15e8346908b4b01c0c1d0550256c3a5ec7.tar.bz2 |
Revert the temporary change in r62624
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 6fc7bb8..fffb630 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -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)) |