diff options
author | Marion <marion.zepf@gmail.com> | 2013-08-09 09:17:55 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-08-09 09:17:55 (GMT) |
commit | ceccfe5f3ff28e5d2c42fc1a56d80b43a680839a (patch) | |
tree | 81daf2a8040742483f1e3bdb5a4228da00b75dfa /TurtleArt/taexportpython.py | |
parent | 753be7616e141d656ebaeaf84651cb53e3fe7383 (diff) |
add Primitives for the 'if-then' and 'if-then-else' blocks
- Treat the list of all blocks attached to one 'flow' dock as one argument.
Diffstat (limited to 'TurtleArt/taexportpython.py')
-rw-r--r-- | TurtleArt/taexportpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/taexportpython.py b/TurtleArt/taexportpython.py index a85a17a..b353b6a 100644 --- a/TurtleArt/taexportpython.py +++ b/TurtleArt/taexportpython.py @@ -193,7 +193,7 @@ def _walk_action_stack(top_block, lc): # body of conditional or loop if prim == LogoCode.loop: new_arg_asts.append(_ast_yield_true()) - arg_asts.extend(new_arg_asts) + arg_asts.append(new_arg_asts) else: # argument block arg_asts.append(*new_arg_asts) |