This is an archive of the discontinued Mercurial Phabricator instance.

exchange: eliminate some bytes.format() calls
ClosedPublic

Authored by mharbison72 on Nov 23 2019, 12:15 AM.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Nov 23 2019, 12:15 AM
dlax accepted this revision.Nov 23 2019, 3:40 AM
indygreg accepted this revision.Nov 23 2019, 7:59 PM
This revision is now accepted and ready to land.Nov 23 2019, 7:59 PM
This revision was automatically updated to reflect the committed changes.
yuja added a subscriber: yuja.Nov 24 2019, 12:16 AM
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)

Perhaps, invalid_includes is a list, and b'%s' % a_list is invalid on py3.