mercurial/manifest.py
changeset 11763 69e0bcf36961
parent 10282 08a0f04b56bd
child 11934 cf858e76e992
--- a/mercurial/manifest.py	Sat Aug 07 15:38:05 2010 +0200
+++ b/mercurial/manifest.py	Sat Aug 07 16:12:51 2010 -0300
@@ -84,7 +84,7 @@
                 hi = start
         end = advance(lo, '\0')
         found = m[lo:end]
-        if cmp(s, found) == 0:
+        if s == found:
             # we know that after the null there are 40 bytes of sha1
             end = advance(end + 40, '\n')
             return (lo, end + 1)