mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
win32: assign winstdout to sys.__stdout__ as well (issue2888)
On Windows sys.stdout was being replaced with winstdout, which caused util.system() to redirect its output (due to 388eabdda556). That causes interactive tools (such as vim) to stop working.
This commit is contained in:
parent
76465b4a18
commit
361e7cfb4a
@ -62,7 +62,7 @@ class winstdout(object):
|
||||
self.close()
|
||||
raise IOError(errno.EPIPE, 'Broken pipe')
|
||||
|
||||
sys.stdout = winstdout(sys.stdout)
|
||||
sys.__stdout__ = sys.stdout = winstdout(sys.stdout)
|
||||
|
||||
def _is_win_9x():
|
||||
'''return true if run on windows 95, 98 or me.'''
|
||||
|
Loading…
Reference in New Issue
Block a user