]> granicus.if.org Git - python/commitdiff
The function name for cmath.isinf in PyArg_ParseTuple() was wrong.
authorBrett Cannon <brett@python.org>
Fri, 31 Jan 2014 17:04:36 +0000 (12:04 -0500)
committerBrett Cannon <brett@python.org>
Fri, 31 Jan 2014 17:04:36 +0000 (12:04 -0500)
Misc/NEWS
Modules/cmathmodule.c

index 579c37aa277180bae0b7f06c581d0b8d23ffe18d..fa2968b1932fb929d02664b7b8f325ed10b098f9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,8 @@ Core and Builtins
 Library
 -------
 
+- Fixed cmath.isinf's name in its argument parsing code.
+
 - Issue #20311, #20452: poll and epoll now round the timeout away from zero,
   instead of rounding towards zero, in select and selectors modules:
   select.epoll.poll(), selectors.PollSelector.poll() and
index 36bf4a1e3df8e16230bd4b7b8453fe782cd7ca73..91b369a2f54498c563dd3de10c3d76d008d86548 100644 (file)
@@ -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));