diff options
author | Marion <marion.zepf@gmail.com> | 2013-09-16 17:51:37 (GMT) |
---|---|---|
committer | Marion <marion.zepf@gmail.com> | 2013-09-16 17:51:37 (GMT) |
commit | d73bfb8735ad2fd58ee4226389a16d570bf362cd (patch) | |
tree | 219c92df336297e0a9f833e939dab4537be8401a /TurtleArt/taexportpython.py | |
parent | 91d4b205073c80e455349fdd403078751147cbc6 (diff) |
fix another bug with exporting action stacks with non-string names
Diffstat (limited to 'TurtleArt/taexportpython.py')
-rw-r--r-- | TurtleArt/taexportpython.py | 2 |
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) |