Mercurial > public > mercurial-scm > evolve
diff docs/conf.py @ 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 | 9aec8fec2bf8 |
children | 034873ca0f88 |
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):