D2271: py3: slice over bytes to prevent getting ascii values

2018-02-14 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGeb91ffdaaece: py3: slice over bytes to prevent getting 
ascii values (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2271?vs=5711=5724

REVISION DETAIL
  https://phab.mercurial-scm.org/D2271

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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:



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2271: py3: slice over bytes to prevent getting ascii values

2018-02-14 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2271

AFFECTED FILES
  mercurial/patch.py

CHANGE DETAILS

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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:



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel