comparison mercurial/help/phases.txt @ 36795:9b513888ea23

ui: do not use rawinput() when we have to replace sys.stdin/stdout See the inline comment for why. The current Python3 hack doesn't work if more than one user inputs are expected because TextIOWrapper fills its internal buffer at the first read() request. Maybe we could write an unbuffered TextIOWrapper, but I don't want to make things more complicated. Instead, this patch reinvents raw_input(' ') of no readline support.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 06 Mar 2018 02:38:53 -0600
parents ff178743e59b
children
comparison
equal deleted inserted replaced
36794:fa53a1d1f16e 36795:9b513888ea23