mirror of https://github.com/python/cpython
Improve error message for "float modulo by zero" (#111685)
This commit is contained in:
parent
a5f29c9faf
commit
0c61d028be
|
@ -646,7 +646,7 @@ float_rem(PyObject *v, PyObject *w)
|
|||
CONVERT_TO_DOUBLE(w, wx);
|
||||
if (wx == 0.0) {
|
||||
PyErr_SetString(PyExc_ZeroDivisionError,
|
||||
"float modulo");
|
||||
"float modulo by zero");
|
||||
return NULL;
|
||||
}
|
||||
mod = fmod(vx, wx);
|
||||
|
|
Loading…
Reference in New Issue