diff mercurial/util.py @ 1030:28e2f13ca7c4

Merge with MPM.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 23 Aug 2005 21:57:22 -0700
parents 22571b8d35d3
children 503aaf19a040
line wrap: on
line diff
--- a/mercurial/util.py	Tue Aug 23 21:53:13 2005 -0700
+++ b/mercurial/util.py	Tue Aug 23 21:57:22 2005 -0700
@@ -9,6 +9,11 @@
 from demandload import *
 demandload(globals(), "re")
 
+def binary(s):
+    if s and '\0' in s[:4096]:
+        return True
+    return False
+
 def unique(g):
     seen = {}
     for f in g: