# HG changeset patch # User Gregory Szorc # Date 1539288114 -7200 # Node ID 5716d48b2a5b534774ac7fb440c0ee0e901e9cb5 # Parent 0199fb5dde20656dddb73bb135386b853cd29a44 py3: convert diff opcode name to bytes Differential Revision: https://phab.mercurial-scm.org/D4968 diff -r 0199fb5dde20 -r 5716d48b2a5b mercurial/hgweb/webutil.py --- 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)