mercurial/util.py
changeset 4434 439b1c35348a
parent 4405 f97b89314fb3
child 4482 62019c4427e3
equal deleted inserted replaced
4433:ba22e867cb23 4434:439b1c35348a
   791     return fallback
   791     return fallback
   792 
   792 
   793 _umask = os.umask(0)
   793 _umask = os.umask(0)
   794 os.umask(_umask)
   794 os.umask(_umask)
   795 
   795 
       
   796 def needbinarypatch():
       
   797     """return True if patches should be applied in binary mode by default."""
       
   798     return os.name == 'nt'
       
   799 
   796 # Platform specific variants
   800 # Platform specific variants
   797 if os.name == 'nt':
   801 if os.name == 'nt':
   798     import msvcrt
   802     import msvcrt
   799     nulldev = 'NUL:'
   803     nulldev = 'NUL:'
   800 
   804