D2071: py3: use pycompat.bytechr instead of chr
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Feb 7 06:22:59 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbdb6ec909878: py3: use pycompat.bytechr instead of chr (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2071?vs=5277&id=5285
REVISION DETAIL
https://phab.mercurial-scm.org/D2071
AFFECTED FILES
mercurial/mdiff.py
CHANGE DETAILS
diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py
--- a/mercurial/mdiff.py
+++ b/mercurial/mdiff.py
@@ -465,9 +465,9 @@
def fmtline(line):
l = len(line)
if l <= 26:
- l = chr(ord('A') + l - 1)
+ l = pycompat.bytechr(ord('A') + l - 1)
else:
- l = chr(l - 26 + ord('a') - 1)
+ l = pycompat.bytechr(l - 26 + ord('a') - 1)
return '%c%s\n' % (l, util.b85encode(line, True))
def chunk(text, csize=52):
To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list