summaryrefslogtreecommitdiffstats
path: root/Python/ast_unparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ast_unparse.c')
-rw-r--r--Python/ast_unparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c
index 8aff045..27c3400 100644
--- a/Python/ast_unparse.c
+++ b/Python/ast_unparse.c
@@ -79,7 +79,7 @@ append_repr(_PyUnicodeWriter *writer, PyObject *obj)
return -1;
}
- if ((PyFloat_CheckExact(obj) && Py_IS_INFINITY(PyFloat_AS_DOUBLE(obj))) ||
+ if ((PyFloat_CheckExact(obj) && isinf(PyFloat_AS_DOUBLE(obj))) ||
PyComplex_CheckExact(obj))
{
PyInterpreterState *interp = _PyInterpreterState_GET();