py3: slice over bytes to prevent getting ascii values
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 14 Feb 2018 17:44:54 +0530
changeset 36192 eb91ffdaaece
parent 36191 80301c90a2dc
child 36193 a228b2f55ad6
py3: slice over bytes to prevent getting ascii values Differential Revision: https://phab.mercurial-scm.org/D2271
mercurial/patch.py
--- 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: