Page MenuHomePhabricator

exchange: eliminate some bytes.format() calls
ClosedPublic

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