Show More
@@ -143,6 +143,11 b' if ispy3:' | |||||
143 |
|
143 | |||
144 | long = int |
|
144 | long = int | |
145 |
|
145 | |||
|
146 | # Warning: sys.stdout.buffer and sys.stderr.buffer do not necessarily have | |||
|
147 | # the same buffering behavior as sys.stdout and sys.stderr. The interpreter | |||
|
148 | # initializes them with block-buffered streams or unbuffered streams (when | |||
|
149 | # the -u option or the PYTHONUNBUFFERED environment variable is set), never | |||
|
150 | # with a line-buffered stream. | |||
146 | # TODO: .buffer might not exist if std streams were replaced; we'll need |
|
151 | # TODO: .buffer might not exist if std streams were replaced; we'll need | |
147 | # a silly wrapper to make a bytes stream backed by a unicode one. |
|
152 | # a silly wrapper to make a bytes stream backed by a unicode one. | |
148 | stdin = sys.stdin.buffer |
|
153 | stdin = sys.stdin.buffer |
General Comments 0
You need to be logged in to leave comments.
Login now