Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-02 14:17:08 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-02 14:17:08 (GMT)
commit9c63c5b5e3dde3f85f0fe7e0db3ee6434a6429bf (patch)
tree1598140e7542d741cda3785daca71df0de8c0fee /TurtleArt/talogo.py
parent7324e6cda8abae54111c5f886c8069812fb040bc (diff)
more tweaks to python export code
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r--TurtleArt/talogo.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index 1ee11f2..82c35b7 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -248,7 +248,6 @@ class LogoCode:
for b in blocks:
b.unhighlight()
- '''
# Hidden macro expansions
for b in blocks:
if b.name in ['while', 'until']:
@@ -262,7 +261,6 @@ class LogoCode:
blocks = new_blocks[:]
if b == blk:
blk = action_blk
- '''
for b in blocks:
if b.name in ('hat', 'hat1', 'hat2'):
@@ -882,12 +880,10 @@ class LogoCode:
def prim_myblock(self, *args):
""" Run Python code imported from Journal """
if self.bindex is not None and self.bindex in self.tw.myblock:
- # try:
- myfunc_import(self, self.tw.myblock[self.bindex], args)
- '''
+ try:
+ myfunc_import(self, self.tw.myblock[self.bindex], args)
except:
raise logoerror("#syntaxerror")
- '''
def prim_myfunction(self, f, *args):
""" Programmable block (Call tajail.myfunc and convert any errors to