diff -r a16fceb686a7 -r ab7f86a748e6 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)