Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 31460:53865692a354
util: wrap s.encode('string_escape') call for future py3 compatibility
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 15 Mar 2017 23:06:50 +0900 |
parents | ea0395eec67b |
children | 468bc8a1863d |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Mon Mar 13 09:24:53 2017 -0700 +++ b/mercurial/debugcommands.py Wed Mar 15 23:06:50 2017 +0900 @@ -1514,8 +1514,8 @@ return not r else: for k, v in sorted(target.listkeys(namespace).iteritems()): - ui.write("%s\t%s\n" % (k.encode('string-escape'), - v.encode('string-escape'))) + ui.write("%s\t%s\n" % (util.escapestr(k), + util.escapestr(v))) @command('debugpvec', [], _('A B')) def debugpvec(ui, repo, a, b=None):