changeset 36192:eb91ffdaaece

py3: slice over bytes to prevent getting ascii values Differential Revision: https://phab.mercurial-scm.org/D2271
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 14 Feb 2018 17:44:54 +0530
parents 80301c90a2dc
children a228b2f55ad6
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: