tests/test-log-exthook.t
changeset 40506 005bc856e919
parent 39673 2b9f315a4217
child 48967 42d2b31cee0b
--- a/tests/test-log-exthook.t	Fri Oct 12 12:30:47 2018 -0400
+++ b/tests/test-log-exthook.t	Tue Oct 23 11:31:33 2018 -0400
@@ -9,10 +9,12 @@
   >   logcmdutil,
   >   repair,
   > )
+  > def brot13(b):
+  >     return codecs.encode(b.decode('utf8'), 'rot-13').encode('utf8')
   > def rot13description(self, ctx):
-  >     summary = codecs.encode("summary", 'rot-13')
-  >     description = ctx.description().strip().splitlines()[0].encode('rot13')
-  >     self.ui.write("%s:     %s\n" % (summary, description))
+  >     description = ctx.description().strip().splitlines()[0]
+  >     self.ui.write(b"%s:     %s\n" % (brot13(b"summary"),
+  >                                      brot13(description)))
   > def reposetup(ui, repo):
   >     logcmdutil.changesetprinter._exthook = rot13description
   > EOF