Patchwork D2335: py3: use "%d" for integers instead of "%s"

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 7:01 p.m.
Message ID <differential-rev-PHID-DREV-amc7wz7gjha6yzvxj347-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28119/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 7:01 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2335

AFFECTED FILES
  mercurial/config.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -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: