comparison 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
comparison
equal deleted inserted replaced
4900:155e986045eb 4901:ce163aaeba37
148 os.path.join( 148 os.path.join(
149 os.path.abspath(os.path.dirname(__file__)), 149 os.path.abspath(os.path.dirname(__file__)),
150 os.pardir, 'hgext3rd', 'evolve')) 150 os.pardir, 'hgext3rd', 'evolve'))
151 hgext.loadall(u) 151 hgext.loadall(u)
152 u.pushbuffer() 152 u.pushbuffer()
153 commands.help_(u, self.content[0]) 153 commands.help_(u, self.content[0].encode('utf-8'))
154 return [ 154 return [
155 nodes.literal_block(text=u.popbuffer())] 155 nodes.literal_block(text=u.popbuffer().decode('utf-8'))]
156 156
157 157
158 def setup(app): 158 def setup(app):
159 app.add_directive('hghelp', hghelpdirective) 159 app.add_directive('hghelp', hghelpdirective)