##// END OF EJS Templates
py3: add warning about buffering behavior of pycompat.{stdout,stderr}
Manuel Jacob -
r45453:7be784f3 stable
parent child Browse files
Show More
@@ -143,6 +143,11 b' if ispy3:'
143 143
144 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 151 # TODO: .buffer might not exist if std streams were replaced; we'll need
147 152 # a silly wrapper to make a bytes stream backed by a unicode one.
148 153 stdin = sys.stdin.buffer
General Comments 0
You need to be logged in to leave comments. Login now