changeset 40156:5716d48b2a5b

py3: convert diff opcode name to bytes Differential Revision: https://phab.mercurial-scm.org/D4968
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 11 Oct 2018 22:01:54 +0200
parents 0199fb5dde20
children a8be613391d1
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Thu Oct 11 21:22:43 2018 +0200
+++ b/mercurial/hgweb/webutil.py	Thu Oct 11 22:01:54 2018 +0200
@@ -618,6 +618,7 @@
 
 def _getcompblockgen(context, leftlines, rightlines, opcodes):
     for type, llo, lhi, rlo, rhi in opcodes:
+        type = pycompat.sysbytes(type)
         len1 = lhi - llo
         len2 = rhi - rlo
         count = min(len1, len2)