mercurial/patch.py
changeset 38085 e887381e2976
parent 38084 86e0a4bede5d
child 38092 f3776f70985e
--- a/mercurial/patch.py	Sat May 19 18:49:07 2018 +0530
+++ b/mercurial/patch.py	Sat May 19 18:51:14 2018 +0530
@@ -1946,7 +1946,7 @@
     """
     def deltahead(binchunk):
         i = 0
-        for c in binchunk:
+        for c in pycompat.bytestr(binchunk):
             i += 1
             if not (ord(c) & 0x80):
                 return i