mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
This commit is contained in:
parent
57ba4f35f7
commit
c425d2f87b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue