##// END OF EJS Templates
py3: use bytestr() to coerce position carried by ParseError to string...
Yuya Nishihara -
r36521:8b662717 default
parent child Browse files
Show More
@@ -132,7 +132,7 b' def _formatparse(write, inst):'
132 similar = _getsimilar(inst.symbols, inst.function)
132 similar = _getsimilar(inst.symbols, inst.function)
133 if len(inst.args) > 1:
133 if len(inst.args) > 1:
134 write(_("hg: parse error at %s: %s\n") %
134 write(_("hg: parse error at %s: %s\n") %
135 (inst.args[1], inst.args[0]))
135 (pycompat.bytestr(inst.args[1]), inst.args[0]))
136 if (inst.args[0][0] == ' '):
136 if (inst.args[0][0] == ' '):
137 write(_("unexpected leading whitespace\n"))
137 write(_("unexpected leading whitespace\n"))
138 else:
138 else:
General Comments 0
You need to be logged in to leave comments. Login now