Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taexportpython.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-09-16 17:51:37 (GMT)
committer Marion <marion.zepf@gmail.com>2013-09-16 17:51:37 (GMT)
commitd73bfb8735ad2fd58ee4226389a16d570bf362cd (patch)
tree219c92df336297e0a9f833e939dab4537be8401a /TurtleArt/taexportpython.py
parent91d4b205073c80e455349fdd403078751147cbc6 (diff)
fix another bug with exporting action stacks with non-string names
Diffstat (limited to 'TurtleArt/taexportpython.py')
-rw-r--r--TurtleArt/taexportpython.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/TurtleArt/taexportpython.py b/TurtleArt/taexportpython.py
index b31bf97..76087ad 100644
--- a/TurtleArt/taexportpython.py
+++ b/TurtleArt/taexportpython.py
@@ -107,6 +107,8 @@ def save_python(tw):
def _action_stack_to_python(block, lc, name="start"):
""" Turn a stack of blocks into python code
name -- the name of the action stack (defaults to "start") """
+ if isinstance(name, int):
+ name = float(name)
if not isinstance(name, basestring):
name = str(name)