diff mercurial/bundle2.py @ 38701:f016eac2a466

py3: use bytes() to byte-stringify Abort message in handleremotechangegroup()
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 19:52:35 +0900
parents d474b3b44d4f
children e7aa113b14f7
line wrap: on
line diff
--- a/mercurial/bundle2.py	Sun Jul 08 19:44:51 2018 +0900
+++ b/mercurial/bundle2.py	Sun Jul 08 19:52:35 2018 +0900
@@ -1878,7 +1878,7 @@
         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'))