mercurial/windows.py
changeset 30470 10d15095d7c2
parent 30309 4b1af1c867fa
child 30474 b02e210a6817
equal deleted inserted replaced
30469:8b3ad0252344 30470:10d15095d7c2
   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 
   173 
   174 sys.__stdout__ = sys.stdout = winstdout(sys.stdout)
   174 sys.stdout = winstdout(sys.stdout)
   175 
   175 
   176 def _is_win_9x():
   176 def _is_win_9x():
   177     '''return true if run on windows 95, 98 or me.'''
   177     '''return true if run on windows 95, 98 or me.'''
   178     try:
   178     try:
   179         return sys.getwindowsversion()[3] == 1
   179         return sys.getwindowsversion()[3] == 1