tests/test-log-exthook.t
changeset 39657 2b9f315a4217
parent 35888 c8e2d6ed1f9e
child 40441 005bc856e919
--- a/tests/test-log-exthook.t	Sun Sep 16 19:18:15 2018 +0530
+++ b/tests/test-log-exthook.t	Sun Sep 16 19:58:01 2018 +0530
@@ -3,13 +3,14 @@
 
   $ cat > $TESTTMP/logexthook.py <<EOF
   > from __future__ import absolute_import
+  > import codecs
   > from mercurial import (
   >   commands,
   >   logcmdutil,
   >   repair,
   > )
   > def rot13description(self, ctx):
-  >     summary = "summary".encode('rot13')
+  >     summary = codecs.encode("summary", 'rot-13')
   >     description = ctx.description().strip().splitlines()[0].encode('rot13')
   >     self.ui.write("%s:     %s\n" % (summary, description))
   > def reposetup(ui, repo):