py3: encode/decode with going through ui in rst directive stable
authorDenis Laxalde <denis@laxalde.org>
Thu, 17 Oct 2019 21:03:19 +0200
branchstable
changeset 4901 ce163aaeba37
parent 4900 155e986045eb
child 4902 86dffe3cec6a
child 4903 86b3efd4303e
py3: encode/decode with going through ui in rst directive mercurial's ui wants bytes, doctutils wants text.
docs/conf.py
--- a/docs/conf.py	Fri Oct 11 16:51:13 2019 +0200
+++ b/docs/conf.py	Thu Oct 17 21:03:19 2019 +0200
@@ -150,9 +150,9 @@
                 os.pardir, 'hgext3rd', 'evolve'))
         hgext.loadall(u)
         u.pushbuffer()
-        commands.help_(u, self.content[0])
+        commands.help_(u, self.content[0].encode('utf-8'))
         return [
-            nodes.literal_block(text=u.popbuffer())]
+            nodes.literal_block(text=u.popbuffer().decode('utf-8'))]
 
 
 def setup(app):