# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-05-20 12:07:07 # Node ID b0144fc8b681351f65f48af4b3903be33004e9fa # Parent 666d90ace0bb4a8f9a03ff1476d7b3a7b6fe4d20 py3: use stringutil.pprint() to prevent b'' prefixes in output This patch uses stringutil.pprint to print a list with bytes in it to prevent the b'' prefixes in the output. Differential Revision: https://phab.mercurial-scm.org/D3632 diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -288,8 +288,8 @@ def _runcatch(req): 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'