changeset 36304:6d6bc544467a

py3: use "%d" for integers instead of "%s" Differential Revision: https://phab.mercurial-scm.org/D2335
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Feb 2018 00:14:33 +0530
parents ed95758addf3
children a8bca9d0cea0
files mercurial/config.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/config.py	Sun Feb 18 18:22:40 2018 +0530
+++ b/mercurial/config.py	Mon Feb 19 00:14:33 2018 +0530
@@ -154,7 +154,7 @@
                         if inst.errno != errno.ENOENT:
                             raise error.ParseError(_("cannot include %s (%s)")
                                                    % (inc, inst.strerror),
-                                                   "%s:%s" % (src, line))
+                                                   "%s:%d" % (src, line))
                 continue
             if emptyre.match(l):
                 continue
@@ -185,7 +185,7 @@
                 self._unset.append((section, name))
                 continue
 
-            raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line)))
+            raise error.ParseError(l.rstrip(), ("%s:%d" % (src, line)))
 
     def read(self, path, fp=None, sections=None, remap=None):
         if not fp: