changeset 4901:ce163aaeba37 stable

py3: encode/decode with going through ui in rst directive mercurial's ui wants bytes, doctutils wants text.
author Denis Laxalde <denis@laxalde.org>
date Thu, 17 Oct 2019 21:03:19 +0200
parents 155e986045eb
children 86dffe3cec6a 86b3efd4303e
files docs/conf.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):