[PATCH 04 of 10] py3: drop b'' from error message generated by templater.runmember()
Yuya Nishihara
yuya at tcha.org
Thu Mar 1 19:26:23 EST 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1519941137 18000
# Thu Mar 01 16:52:17 2018 -0500
# Node ID 47a09e779081aed563018208407c771ede557ffd
# Parent 7f0a461c110f7d953dda945dfe9c0912865f8e91
py3: drop b'' from error message generated by templater.runmember()
diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -548,7 +548,7 @@ def runmember(context, mapping, data):
if sym:
raise error.ParseError(_("keyword '%s' has no member") % sym)
else:
- raise error.ParseError(_("%r has no member") % d)
+ raise error.ParseError(_("%r has no member") % pycompat.bytestr(d))
def buildnegate(exp, context):
arg = compileexp(exp[1], context, exprmethods)
More information about the Mercurial-devel
mailing list