# HG changeset patch # User Denis Laxalde # Date 1571338999 -7200 # Node ID ce163aaeba37c575b8944ebada9ee03afc976883 # Parent 155e986045eb786c20f5541200e89d8a71e25d17 py3: encode/decode with going through ui in rst directive mercurial's ui wants bytes, doctutils wants text. diff -r 155e986045eb -r ce163aaeba37 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):