Skip to content
Snippets Groups Projects
Unverified Commit 71cb425d authored by xmo-odoo's avatar xmo-odoo Committed by GitHub
Browse files

[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.
parent d6a074b8
Branches
Tags
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment