# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526669616 -19800 # Node ID 558e5504a4f8e91bcdfca41b51ca4cac4b1e3e73 # Parent 88c2d0e639b1abe87cfba7ff1efe8094f5df11cb py3: use stringutil.pprint() to format a list to print Differential Revision: https://phab.mercurial-scm.org/D3582 diff -r 88c2d0e639b1 -r 558e5504a4f8 hgext/mq.py --- 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()