equal
deleted
inserted
replaced
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 |