##// END OF EJS Templates
py3: use pycompat.bytechr instead of chr...
Pulkit Goyal -
r35961:bdb6ec90 default
parent child Browse files
Show More
@@ -465,9 +465,9 b' def b85diff(to, tn):'
465 def fmtline(line):
465 def fmtline(line):
466 l = len(line)
466 l = len(line)
467 if l <= 26:
467 if l <= 26:
468 l = chr(ord('A') + l - 1)
468 l = pycompat.bytechr(ord('A') + l - 1)
469 else:
469 else:
470 l = chr(l - 26 + ord('a') - 1)
470 l = pycompat.bytechr(l - 26 + ord('a') - 1)
471 return '%c%s\n' % (l, util.b85encode(line, True))
471 return '%c%s\n' % (l, util.b85encode(line, True))
472
472
473 def chunk(text, csize=52):
473 def chunk(text, csize=52):
General Comments 0
You need to be logged in to leave comments. Login now