changeset 38050:558e5504a4f8

py3: use stringutil.pprint() to format a list to print Differential Revision: https://phab.mercurial-scm.org/D3582
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 19 May 2018 00:23:36 +0530
parents 88c2d0e639b1
children cab398cb9b49
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Sat May 19 00:21:59 2018 +0530
+++ b/hgext/mq.py	Sat May 19 00:23:36 2018 +0530
@@ -492,7 +492,8 @@
                     n, name = entry
                     yield statusentry(bin(n), name)
                 elif l.strip():
-                    self.ui.warn(_('malformated mq status line: %s\n') % entry)
+                    self.ui.warn(_('malformated mq status line: %s\n') %
+                                 stringutil.pprint(entry))
                 # else we ignore empty lines
         try:
             lines = self.opener.read(self.statuspath).splitlines()