Patchwork D7511: exchange: eliminate some bytes.format() calls

login
register
mail settings
Submitter phabricator
Date Nov. 24, 2019, 1:01 a.m.
Message ID <53fe156da3ff60e903a882306bdffd3d@localhost.localdomain>
Download mbox | patch
Permalink /patch/43506/
State Not Applicable
Headers show

Comments

phabricator - Nov. 24, 2019, 1:01 a.m.
Closed by commit rHG76d4bf0a652b: exchange: eliminate some bytes.format() calls (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7511?vs=18336&id=18378

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7511/new/

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

AFFECTED FILES
  mercurial/exchange.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, dlax, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -2181,9 +2181,8 @@ 
     )
     if not user_includes:
         raise error.Abort(
-            _(b"{} configuration for user {} is empty").format(
-                _NARROWACL_SECTION, username
-            )
+            _(b"%s configuration for user %s is empty")
+            % (_NARROWACL_SECTION, username)
         )
 
     user_includes = [
@@ -2202,9 +2201,8 @@ 
 
     if invalid_includes:
         raise error.Abort(
-            _(b"The following includes are not accessible for {}: {}").format(
-                username, invalid_includes
-            )
+            _(b"The following includes are not accessible for %s: %s")
+            % (username, invalid_includes)
         )
 
     new_args = {}