mercurial/util.py
changeset 4434 439b1c35348a
parent 4407 f97b89314fb3
child 4488 62019c4427e3
--- a/mercurial/util.py	Mon May 07 21:44:11 2007 +0900
+++ b/mercurial/util.py	Sat May 12 21:09:29 2007 +0200
@@ -793,6 +793,10 @@
 _umask = os.umask(0)
 os.umask(_umask)
 
+def needbinarypatch():
+    """return True if patches should be applied in binary mode by default."""
+    return os.name == 'nt'
+
 # Platform specific variants
 if os.name == 'nt':
     import msvcrt