changeset 38605:85c74c5a1590

py3: drop b'' while formatting ResponseError
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 18:58:11 +0900
parents 2834ac06d5a9
children 15622e72307d
files contrib/python3-whitelist mercurial/scmutil.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Sun Jul 08 18:52:28 2018 +0900
+++ b/contrib/python3-whitelist	Sun Jul 08 18:58:11 2018 +0900
@@ -36,6 +36,7 @@
 test-bundle-type.t
 test-bundle-vs-outgoing.t
 test-bundle.t
+test-bundle2-exchange.t
 test-bundle2-multiple-changegroups.t
 test-bundle2-pushback.t
 test-cappedreader.py
--- a/mercurial/scmutil.py	Sun Jul 08 18:52:28 2018 +0900
+++ b/mercurial/scmutil.py	Sun Jul 08 18:58:11 2018 +0900
@@ -201,7 +201,7 @@
         elif not msg:
             ui.warn(_(" empty string\n"))
         else:
-            ui.warn("\n%r\n" % stringutil.ellipsis(msg))
+            ui.warn("\n%r\n" % pycompat.bytestr(stringutil.ellipsis(msg)))
     except error.CensoredNodeError as inst:
         ui.warn(_("abort: file censored %s!\n") % inst)
     except error.RevlogError as inst: