From patchwork Mon May 21 18:36:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3632: py3: use stringutil.pprint() to prevent b'' prefixes in output From: phabricator X-Patchwork-Id: 31787 Message-Id: <42d7f0ab7404408ac011ba4f51fc9a64@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Mon, 21 May 2018 18:36:30 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGb0144fc8b681: py3: use stringutil.pprint() to prevent b'' prefixes in output (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3632?vs=8840&id=8857 REVISION DETAIL https://phab.mercurial-scm.org/D3632 AFFECTED FILES mercurial/dispatch.py CHANGE DETAILS To: pulkit, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -288,8 +288,8 @@ req.args[2] != 'serve' or req.args[3] != '--stdio'): raise error.Abort( - _('potentially unsafe serve --stdio invocation: %r') % - (req.args,)) + _('potentially unsafe serve --stdio invocation: %s') % + (stringutil.pprint(req.args),)) try: debugger = 'pdb'