summaryrefslogtreecommitdiff
path: root/odoo/modules/graph.py
diff options
context:
space:
mode:
authorxmo-odoo <xmo@odoo.com>2017-04-27 13:59:33 +0200
committerGitHub <noreply@github.com>2017-04-27 13:59:33 +0200
commit2e6a589f417af48e3322955ffff6e94b6d8a24e3 (patch)
treeaa613ecc1f74a9531a03de89aa2bdc7bb32eed3b /odoo/modules/graph.py
parentde4a2216b953abb86094c9bfa5f45b1eaaa79d3d (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.py2
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):