--- 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