mirror of https://github.com/python/cpython
Fix SF #1676971, Complex OverflowError has a typo
This commit is contained in:
parent
fb728de5f4
commit
0593de32d9
|
@ -481,7 +481,7 @@ complex_pow(PyComplexObject *v, PyObject *w, PyComplexObject *z)
|
||||||
}
|
}
|
||||||
else if (errno == ERANGE) {
|
else if (errno == ERANGE) {
|
||||||
PyErr_SetString(PyExc_OverflowError,
|
PyErr_SetString(PyExc_OverflowError,
|
||||||
"complex exponentiaion");
|
"complex exponentiation");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return PyComplex_FromCComplex(p);
|
return PyComplex_FromCComplex(p);
|
||||||
|
|
Loading…
Reference in New Issue