mercurial/debugcommands.py
changeset 31451 53865692a354
parent 31402 ea0395eec67b
child 31517 468bc8a1863d
--- 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):