py3: slice over bytes to prevent getting ascii values
Differential Revision: https://phab.mercurial-scm.org/D2271
--- a/mercurial/patch.py Wed Feb 14 17:44:19 2018 +0530
+++ b/mercurial/patch.py Wed Feb 14 17:44:54 2018 +0530
@@ -1450,7 +1450,7 @@
dec = []
line = getline(lr, self.hunk)
while len(line) > 1:
- l = line[0]
+ l = line[0:1]
if l <= 'Z' and l >= 'A':
l = ord(l) - ord('A') + 1
else: