Commit 4ba4cd84 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix some map() regressions

some more to come...
parent 061dac72
......@@ -3778,7 +3778,8 @@ def state(root, parent, context):
if not isinstance(inps, int)):
res.extend(li for i in lists for li in i.inputlist)
subinputs = map(gather_inputlist, state_ast.composite_states)
map(res.extend, subinputs)
for each in subinputs:
res.extend(each)
return res
for comp in context.composite_states:
# if the current state is a composite state, check that none of
......@@ -3964,7 +3965,8 @@ def connect_part(root, parent, context):
yield each
all_terms = map(check_terminators, siblings(nested))
terminators = []
map(terminators.extend, all_terms)
for each in all_terms:
terminators.extend(each)
for each in terminators:
# Set next transition, exact id to be found in postprocessing
each.next_trans = trans
......
......@@ -646,7 +646,8 @@ class SDL_Scene(QGraphicsScene):
fix_pos_from_ast(branch)
fix_pos_from_ast(symbol.next_aligned_symbol())
fix_pos_from_ast(symbol.comment)
map(fix_pos_from_ast, dest_scene.floating_symb)
for each in dest_scene.floating_symb:
fix_pos_from_ast(each)
except TypeError:
LOG.error(traceback.format_exc())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment