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

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sun Nov 24 00:16:24 EST 2019


yuja added a comment.


  >   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.

REPOSITORY
  rHG Mercurial

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

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

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


More information about the Mercurial-devel mailing list