diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-04-27 13:59:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-27 13:59:33 +0200 |
| commit | 2e6a589f417af48e3322955ffff6e94b6d8a24e3 (patch) | |
| tree | aa613ecc1f74a9531a03de89aa2bdc7bb32eed3b /odoo/modules/graph.py | |
| parent | de4a2216b953abb86094c9bfa5f45b1eaaa79d3d (diff) | |
[FIX] builtins removed from Python 3
* Reverse wrapper courtesy of @rco-odoo's original P3 branch
* thin compat module stripped down from werkzeug (to augment as needed)
issue 8530
Diffstat (limited to 'odoo/modules/graph.py')
| -rw-r--r-- | odoo/modules/graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/modules/graph.py b/odoo/modules/graph.py index ca4998fd254..9a11949c508 100644 --- a/odoo/modules/graph.py +++ b/odoo/modules/graph.py @@ -165,7 +165,7 @@ class Node(object): for attr in ('init', 'update', 'demo'): if hasattr(self, attr): setattr(node, attr, True) - self.children.sort(lambda x, y: cmp(x.name, y.name)) + self.children.sort(key=lambda x: x.name) return node def __setattr__(self, name, value): |
