Mercurial > hg > mercurial-crew
diff mercurial/util.py @ 6506:9699864de219
Let util.binary check entire data for \0 (issue1066, issue1079)
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Tue, 08 Apr 2008 13:19:36 +0200 (2008-04-08) |
parents | 4f7feeb6d6ee |
children | 962eb403165b |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -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