comparison mercurial/windows.py @ 30474:b02e210a6817

windows: do not replace sys.stdout by winstdout Now we use util.stdout everywhere.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 21 Oct 2016 00:03:46 +0900
parents 10d15095d7c2
children d623cc6b3742
comparison
equal deleted inserted replaced
30473:39d13b8c101d 30474:b02e210a6817
168 except IOError as inst: 168 except IOError as inst:
169 if inst.errno != errno.EINVAL: 169 if inst.errno != errno.EINVAL:
170 raise 170 raise
171 self.close() 171 self.close()
172 raise IOError(errno.EPIPE, 'Broken pipe') 172 raise IOError(errno.EPIPE, 'Broken pipe')
173
174 sys.stdout = winstdout(sys.stdout)
175 173
176 def _is_win_9x(): 174 def _is_win_9x():
177 '''return true if run on windows 95, 98 or me.''' 175 '''return true if run on windows 95, 98 or me.'''
178 try: 176 try:
179 return sys.getwindowsversion()[3] == 1 177 return sys.getwindowsversion()[3] == 1