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, 2 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 25a43b2..f039f1a 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -603,6 +603,7 @@ on_hook(PyObject *func)
#ifdef WITH_THREAD
PyGILState_Release(gilstate);
#endif
+ return result;
}
return result;
}
@@ -655,6 +656,7 @@ on_completion(char *text, int state)
#ifdef WITH_THREAD
PyGILState_Release(gilstate);
#endif
+ return result;
}
return result;
}