# HG changeset patch # User Augie Fackler # Date 2017-03-12 05:44:59 # Node ID 089e37802fb314649f94724b0461f8f64394b0b5 # Parent 667e88568087ee9e0c91a6d163f71203de2deed3 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. diff --git a/mercurial/parser.py b/mercurial/parser.py --- a/mercurial/parser.py +++ b/mercurial/parser.py @@ -265,7 +265,7 @@ def parseerrordetail(inst): """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]