comparison mercurial/ui.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 9df29b7c62cf
children b0a8337ba9af
comparison
equal deleted inserted replaced
30472:277f4fe6d01a 30473:39d13b8c101d
128 self.insecureconnections = src.insecureconnections 128 self.insecureconnections = src.insecureconnections
129 self.fixconfig() 129 self.fixconfig()
130 130
131 self.httppasswordmgrdb = src.httppasswordmgrdb 131 self.httppasswordmgrdb = src.httppasswordmgrdb
132 else: 132 else:
133 self.fout = sys.stdout 133 self.fout = util.stdout
134 self.ferr = sys.stderr 134 self.ferr = util.stderr
135 self.fin = sys.stdin 135 self.fin = util.stdin
136 136
137 # shared read-only environment 137 # shared read-only environment
138 self.environ = os.environ 138 self.environ = os.environ
139 # we always trust global config files 139 # we always trust global config files
140 for f in scmutil.rcpath(): 140 for f in scmutil.rcpath():