py3: use bytestr() to coerce position carried by ParseError to string
The position value is either int or byte string.
--- a/mercurial/dispatch.py Thu Mar 01 08:38:39 2018 -0500
+++ b/mercurial/dispatch.py Thu Mar 01 08:45:34 2018 -0500
@@ -132,7 +132,7 @@
similar = _getsimilar(inst.symbols, inst.function)
if len(inst.args) > 1:
write(_("hg: parse error at %s: %s\n") %
- (inst.args[1], inst.args[0]))
+ (pycompat.bytestr(inst.args[1]), inst.args[0]))
if (inst.args[0][0] == ' '):
write(_("unexpected leading whitespace\n"))
else: