changeset 38143:b0144fc8b681

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 20 May 2018 17:37:07 +0530
parents 666d90ace0bb
children bacbe829c2bf
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sun May 20 17:35:57 2018 +0530
+++ b/mercurial/dispatch.py	Sun May 20 17:37:07 2018 +0530
@@ -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'