Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
This commit is contained in:
parent
57ba4f35f7
commit
c425d2f87b
|
@ -51,6 +51,7 @@ Py_FrozenMain(argc, argv)
|
|||
unbuffered = 1;
|
||||
|
||||
if (unbuffered) {
|
||||
setbuf(stdin, (char *)NULL);
|
||||
setbuf(stdout, (char *)NULL);
|
||||
setbuf(stderr, (char *)NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue