changeset 43789:27c6d6f53d46

exchange: eliminate some bytes.format() calls Differential Revision: https://phab.mercurial-scm.org/D7511
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 22 Nov 2019 23:58:25 -0500
parents fe73ec69350e
children 44b605638918
files mercurial/exchange.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Fri Nov 22 23:55:57 2019 -0500
+++ b/mercurial/exchange.py	Fri Nov 22 23:58:25 2019 -0500
@@ -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 = {}