changeset 31353:089e37802fb3

parser: use %d instead of %s for interpolating error position Error position is an int, so we should use %d instead of %s. Fixes failures on Python 3.
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 00:44:59 -0500
parents 667e88568087
children e6a2b625e0d9
files mercurial/parser.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/parser.py	Sun Mar 12 00:44:21 2017 -0500
+++ b/mercurial/parser.py	Sun Mar 12 00:44:59 2017 -0500
@@ -265,7 +265,7 @@
     """Compose error message from specified ParseError object
     """
     if len(inst.args) > 1:
-        return _('at %s: %s') % (inst.args[1], inst.args[0])
+        return _('at %d: %s') % (inst.args[1], inst.args[0])
     else:
         return inst.args[0]