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

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 8:46 p.m.
Message ID <633ff5b80c73323b88f391187a42b7a0@localhost.localdomain>
Download mbox | patch
Permalink /patch/28122/
State Not Applicable
Headers show

Comments

phabricator - Feb. 18, 2018, 8:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGadf867853dbf: py3: use &quot;%d&quot; for integers instead of &quot;%s&quot; (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2335?vs=5889&id=5892

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

AFFECTED FILES
  mercurial/config.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
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: