summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-26 14:39:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-26 14:39:10 (GMT)
commit566f6afe9a9de23132302020dcb4c612d5180f23 (patch)
tree4475264f5fe2cd2183321e1dcd06fcd29dab9644 /Parser/tokenizer.c
parent88afe666daf18cb93f78b2e7e025cb469ef7f551 (diff)
downloadcpython-566f6afe9a9de23132302020dcb4c612d5180f23.zip
cpython-566f6afe9a9de23132302020dcb4c612d5180f23.tar.gz
cpython-566f6afe9a9de23132302020dcb4c612d5180f23.tar.bz2
Patch #512981: Update readline input stream on sys.stdin/out change.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r--Parser/tokenizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c
index 749a59b..8490ae9 100644
--- a/Parser/tokenizer.c
+++ b/Parser/tokenizer.c
@@ -18,7 +18,7 @@
#include "abstract.h"
#endif /* PGEN */
-extern char *PyOS_Readline(char *);
+extern char *PyOS_Readline(FILE *, FILE *, char *);
/* Return malloc'ed string including trailing \n;
empty malloc'ed string for EOF;
NULL if interrupted */
@@ -671,7 +671,7 @@ tok_nextc(register struct tok_state *tok)
return Py_CHARMASK(*tok->cur++);
}
if (tok->prompt != NULL) {
- char *new = PyOS_Readline(tok->prompt);
+ char *new = PyOS_Readline(stdin, stdout, tok->prompt);
if (tok->nextprompt != NULL)
tok->prompt = tok->nextprompt;
if (new == NULL)