[FIX] doc: translator under Sphinx 1.5

In Sphinx 1.5 (fairly specifically), the warner thing takes a `type` kw,
and building the doc blows up if that parameter is not provided.
This commit is contained in:
xmo-odoo
2018-10-25 11:08:35 +02:00
committed by GitHub
parent d6a074b832
commit 71cb425d00
+1 -1
View File
@@ -196,7 +196,7 @@ class BootstrapTranslator(nodes.NodeVisitor, object):
else:
opts = {}
def warner(msg):
def warner(msg, **kw):
self.builder.warn(msg, (self.builder.current_docname, node.line))
highlighted = self.builder.highlighter.highlight_block(
node.rawsource, lang, opts=opts, warn=warner, linenos=linenos,