From 4e707c1362b7e638335871a945354d2eae78706a Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 9 Jun 2015 15:08:06 +0200 Subject: [PATCH] Type in module_handler.py --- scripts/module/module_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/module/module_handler.py b/scripts/module/module_handler.py index e8d58889..7ae8e07f 100755 --- a/scripts/module/module_handler.py +++ b/scripts/module/module_handler.py @@ -52,9 +52,9 @@ def get_dict_child(): return d_ref -def l_module_generalogy_rec(d_chidlren, l_module): +def l_module_generalogy_rec(d_child, l_module): """ - From a list of module return the module and all of the genealogy + From a list of module return the module and descendant """ l = [] @@ -62,7 +62,7 @@ def l_module_generalogy_rec(d_chidlren, l_module): if module not in l: l.append(module) try: - l.extend(l_module_generalogy_rec(d_chidlren, d_chidlren[module])) + l.extend(l_module_generalogy_rec(d_child, d_child[module])) except KeyError: print >> sys.stderr, "`{0}` not submodule".format(module) print >> sys.stderr, "Check the corresponding NEEDED_CHILDREN_MODULES"