# HG changeset patch # User Matt Harbison # Date 2019-11-23 04:58:25 # Node ID 76d4bf0a652b40ffe95f4db62da483d3386226bc # Parent c6060b243163956cf2fa854890b6d58bf44bdcb9 exchange: eliminate some bytes.format() calls Differential Revision: https://phab.mercurial-scm.org/D7511 diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -2181,9 +2181,8 @@ def applynarrowacl(repo, kwargs): ) 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 @@ def applynarrowacl(repo, kwargs): 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 = {}