diff options
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 979e34f..7fc421e 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -84,7 +84,7 @@ my_fgets(char *buf, int len, FILE *fp) int s; PyEval_RestoreThread(_PyOS_ReadlineTState); s = PyErr_CheckSignals(); - PyThreadState_Swap(NULL); + PyEval_SaveThread(); if (s < 0) { return 1; } |