mercurial/windows.py
branchstable
changeset 14892 d2d592718e90
parent 14271 4030630fb59c
child 14926 4e7e63fc685a
--- a/mercurial/windows.py	Sat Jul 09 19:06:59 2011 +0300
+++ b/mercurial/windows.py	Sat Jul 16 15:24:28 2011 +0300
@@ -62,7 +62,7 @@
             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.'''