diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-10-10 13:29:11 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-10-10 13:29:11 +0200 |
| commit | 40ca8557e9e25832afa40afd84124319cb71f87b (patch) | |
| tree | b4792e33b8404b75274e33e317de1183bb86e795 /doc/_extensions/odoo_ext/translator.py | |
| parent | 8071742959b03020ff2cf32670bb5495804eae57 (diff) | |
[FIX] building documentation with P3
* fix P3 incompatibilities in doc/_extensions
* vendor pyjsdoc, strip out everything we're not using and make what's
left P3-compatible (upstream is not P3 compliant)
* drop undeclared dependency on attrs as it turns out not to be much
used
Diffstat (limited to 'doc/_extensions/odoo_ext/translator.py')
| -rw-r--r-- | doc/_extensions/odoo_ext/translator.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/_extensions/odoo_ext/translator.py b/doc/_extensions/odoo_ext/translator.py index c2349bca315..1c6d1c86d2e 100644 --- a/doc/_extensions/odoo_ext/translator.py +++ b/doc/_extensions/odoo_ext/translator.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from __future__ import print_function + import os.path import posixpath import re @@ -114,7 +116,7 @@ class BootstrapTranslator(nodes.NodeVisitor, object): return u''.join(self.body) def unknown_visit(self, node): - print "unknown node", node.__class__.__name__ + print("unknown node", node.__class__.__name__) self.body.append(u'[UNKNOWN NODE {}]'.format(node.__class__.__name__)) raise nodes.SkipNode |
