diff options
author | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-07-10 04:32:17 (GMT) |
---|---|---|
committer | Pootle daemon <pootle@pootle.sugarlabs.org> | 2012-07-10 04:32:17 (GMT) |
commit | d1644f0fd980c864f94ad8b16db11d448111e69b (patch) | |
tree | 9516d41e9a262de2a5cb7f80a3f8b17dff2f76e7 /TurtleArt/talogo.py | |
parent | 9240c9686816e6a6e09973dc6a3b2c356df1eb9d (diff) | |
parent | 72042fc36f503894741ea4086bb89076b58542dc (diff) |
Merge branch 'master' of git.sugarlabs.org:turtleart/mainline
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r-- | TurtleArt/talogo.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py index 3e8fb0f..8d957bc 100644 --- a/TurtleArt/talogo.py +++ b/TurtleArt/talogo.py @@ -803,8 +803,6 @@ class LogoCode: # into trouble if any of these block types (forever, while, # until. ifelse, stopstack, or stack) is changed in tablock.py - # TODO: Detect nesting, e.g., forever while - if b.name == 'while': while_blk = True else: @@ -819,7 +817,7 @@ class LogoCode: self.save_blocks = blocks[:] # Create an action block that will jump to the new stack - action_name = '#s_forever %d' % (len(self.save_while_blks) + 1) + action_name = '_forever %d' % (len(self.save_while_blks) + 1) action_blk = HiddenBlock('stack') action_label_blk = HiddenBlock('string', value=action_name) @@ -841,7 +839,7 @@ class LogoCode: # Create action block(s) to run the code inside the forever loop if until_blk and whileflow is not None: # run until flow at least once - action_flow_name = '#s_flow %d' % (len(self.save_while_blks) + 1) + action_flow_name = '_flow %d' % (len(self.save_while_blks) + 1) action_first = HiddenBlock('stack') first_label_blk = HiddenBlock('string', value=action_flow_name) |