mercurial/util.py
changeset 6507 9699864de219
parent 6501 4f7feeb6d6ee
child 6548 962eb403165b
--- a/mercurial/util.py	Wed Apr 09 14:12:32 2008 +0200
+++ b/mercurial/util.py	Tue Apr 08 13:19:36 2008 +0200
@@ -243,8 +243,8 @@
     return pipefilter(s, cmd)
 
 def binary(s):
-    """return true if a string is binary data using diff's heuristic"""
-    if s and '\0' in s[:4096]:
+    """return true if a string is binary data"""
+    if s and '\0' in s:
         return True
     return False