py3: encode/decode with going through ui in rst directive
mercurial's ui wants bytes, doctutils wants text.
--- 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):