Skip to content
Snippets Groups Projects
Commit 4e349d3d authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

Force order of dict of exception to avoid random of dict

parent 6ef47271
No related branches found
No related tags found
No related merge requests found
......@@ -672,7 +672,7 @@ def find_missing_rule(main_rule, dict_of_rule, depth=0):
# Dict of missing rules. Key is depth.
ret = defaultdict(list)
# For each rule of the exception
for i in dict_of_rule:
for i in reversed(sorted(dict_of_rule)):
# Backup the dict
dict_of_rule_small = dict_of_rule.copy()
# Remove current rule
......@@ -751,7 +751,7 @@ def find_rechable_pos(main_rule, dict_of_rule):
ret[len(dict_of_rule)] = main_rule
else:
# For each rules
for i in dict_of_rule:
for i in reversed(sorted(dict_of_rule)):
# Create the corresponding rule
tmp_rule = Rule(i, dict_of_rule[i], False, -1)
# Get the corresponding rule in main_rule
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment