Mercurial > hg
comparison contrib/win32/hg.bat @ 30472:277f4fe6d01a
py3: provide bytes stdin/out/err through util module
Since standard streams are TextIO on Python 3, we can't use sys.stdin/out/err
directly. Fortunately we can get the underlying BytesIO via .buffer as long as
the streams aren't replaced by e.g. StringIO.
stdin/out/err are provided through util so we can wrap them by platform API.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 20 Oct 2016 23:40:24 +0900 |
parents | 975c4fc4a512 |
children | fc8a5c9ecee0 |
comparison
equal
deleted
inserted
replaced
30471:00c9ac4ce816 | 30472:277f4fe6d01a |
---|