comparison mercurial/dispatch.py @ 30473:39d13b8c101d

py3: bulk replace sys.stdin/out/err by util's Almost all sys.stdin/out/err in hgext/ and mercurial/ are replaced by util's. There are a few exceptions: - lsprof.py and statprof.py are untouched since they are a kind of vendor code and they never import mercurial modules right now. - ui._readline() needs to replace sys.stdin and stdout to pass them to raw_input(). We'll need another workaround here.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 20 Oct 2016 23:53:36 +0900
parents 7f2b18c34c02
children acd30a959980
comparison
equal deleted inserted replaced
30472:277f4fe6d01a 30473:39d13b8c101d
95 if req.ferr: 95 if req.ferr:
96 ferr = req.ferr 96 ferr = req.ferr
97 elif req.ui: 97 elif req.ui:
98 ferr = req.ui.ferr 98 ferr = req.ui.ferr
99 else: 99 else:
100 ferr = sys.stderr 100 ferr = util.stderr
101 101
102 try: 102 try:
103 if not req.ui: 103 if not req.ui:
104 req.ui = uimod.ui() 104 req.ui = uimod.ui()
105 if '--traceback' in req.args: 105 if '--traceback' in req.args: