# HG changeset patch # User Yuya Nishihara # Date 2018-07-08 10:52:35 # Node ID f016eac2a466ff9431af7aa495ba4ef591e7aa29 # Parent cfdf7bfb0ac01d8ea2e69c2a9e77ed9694b7fd85 py3: use bytes() to byte-stringify Abort message in handleremotechangegroup() diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist --- a/contrib/python3-whitelist +++ b/contrib/python3-whitelist @@ -41,6 +41,7 @@ test-bundle2-exchange.t test-bundle2-format.t test-bundle2-multiple-changegroups.t test-bundle2-pushback.t +test-bundle2-remote-changegroup.t test-cappedreader.py test-casecollision.t test-cat.t diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -1878,7 +1878,7 @@ def handleremotechangegroup(op, inpart): real_part.validate() except error.Abort as e: raise error.Abort(_('bundle at %s is corrupted:\n%s') % - (util.hidepassword(raw_url), str(e))) + (util.hidepassword(raw_url), bytes(e))) assert not inpart.read() @parthandler('reply:changegroup', ('return', 'in-reply-to'))