summaryrefslogtreecommitdiff
path: root/Modules/cmathmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2014-01-31 12:04:36 -0500
committerBrett Cannon <brett@python.org>2014-01-31 12:04:36 -0500
commit7b7247cfd9a417f18ff8f2d0e74fee966c614311 (patch)
tree56ac100a85172905157dd6ae96fcb40bb48d77f4 /Modules/cmathmodule.c
parentdd481f525c97bb90ef377bee926f1ec6cd6eb5c7 (diff)
downloadcpython-7b7247cfd9a417f18ff8f2d0e74fee966c614311.tar.gz
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 36bf4a1e3d..91b369a2f5 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));