py3: drop b'' from error message generated by templater.runmember()
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 16:52:17 -0500
changeset 36545 ab7f86a748e6
parent 36544 a16fceb686a7
child 36546 14bbb54a9c5b
py3: drop b'' from error message generated by templater.runmember()
mercurial/templater.py
--- a/mercurial/templater.py	Thu Mar 01 16:42:24 2018 -0500
+++ b/mercurial/templater.py	Thu Mar 01 16:52:17 2018 -0500
@@ -548,7 +548,7 @@
     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)