summaryrefslogtreecommitdiffstats
path: root/Modules/cmathmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-01-31 17:04:36 (GMT)
committerBrett Cannon <brett@python.org>2014-01-31 17:04:36 (GMT)
commit1088d988996dd8c63a73a5139173627320d74405 (patch)
tree64ffc6979cc71c90e410abd4fecff9bbd58f05e0 /Modules/cmathmodule.c
parent62510dced9e8242224ce3d45388eff6486e83c3c (diff)
downloadcpython-1088d988996dd8c63a73a5139173627320d74405.zip
cpython-1088d988996dd8c63a73a5139173627320d74405.tar.gz
cpython-1088d988996dd8c63a73a5139173627320d74405.tar.bz2
The function name for cmath.isinf in PyArg_ParseTuple() was wrong.
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r--Modules/cmathmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c
index 36bf4a1..91b369a 100644
--- a/Modules/cmathmodule.c
+++ b/Modules/cmathmodule.c
@@ -1060,7 +1060,7 @@ static PyObject *
cmath_isinf(PyObject *self, PyObject *args)
{
Py_complex z;
- if (!PyArg_ParseTuple(args, "D:isnan", &z))
+ if (!PyArg_ParseTuple(args, "D:isinf", &z))
return NULL;
return PyBool_FromLong(Py_IS_INFINITY(z.real) ||
Py_IS_INFINITY(z.imag));