summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 6729a09..2531b23 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -1001,7 +1001,7 @@ on_hook(PyObject *func)
if (r == Py_None)
result = 0;
else {
- result = _PyLong_AsInt(r);
+ result = PyLong_AsInt(r);
if (result == -1 && PyErr_Occurred())
goto error;
}