summaryrefslogtreecommitdiff
path: root/odoo/modules/graph.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-04-12 09:53:33 +0200
committerXavier Morel <xmo@odoo.com>2017-04-12 13:48:42 +0200
commit76852a2fad05292b8d592b76b37e4732f9c60a2d (patch)
tree89f532e4d594b815b98f0425397b6156888626c3 /odoo/modules/graph.py
parent15e17e7b48f89f6e897a28f5031cdd740a887d80 (diff)
[#8530] fix uses of ``reduce`` builtin
Demoted to library in Python 3, see if uses can be replaced by more specific construct, just import functools.reduce otherwise. Futurize fixers: * lib2to3.fixes.fix_reduce
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 aaf90ae8443..48cc0e8a6e1 100644
--- a/odoo/modules/graph.py
+++ b/odoo/modules/graph.py
@@ -91,7 +91,7 @@ class Graph(dict):
deps = info['depends']
# if all dependencies of 'package' are already in the graph, add 'package' in the graph
- if reduce(lambda x, y: x and y in self, deps, True):
+ if all(dep in self for dep in deps):
if not package in current:
packages.pop(0)
continue