diff --git a/doc/_extensions/odoo_ext/switcher.py b/doc/_extensions/odoo_ext/switcher.py index 51fb604929c..8571d124259 100644 --- a/doc/_extensions/odoo_ext/switcher.py +++ b/doc/_extensions/odoo_ext/switcher.py @@ -1,7 +1,8 @@ from docutils import nodes, utils from docutils.parsers.rst import Directive -from pygments.lexers import get_lexer_by_name +from pygments.lexers import get_lexer_by_name, PythonLexer +PythonLexer.name = 'Python 2' def setup(app): app.add_directive('switcher', SwitcherDirective)