Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt')
-rw-r--r--TurtleArt/taexportpython.py4
-rw-r--r--TurtleArt/taprimitive.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArt/taexportpython.py b/TurtleArt/taexportpython.py
index a97fbca..33c3979 100644
--- a/TurtleArt/taexportpython.py
+++ b/TurtleArt/taexportpython.py
@@ -39,9 +39,9 @@ from tautils import (debug_output, find_group, find_top_block, get_stack_name)
_SETUP_CODE_START = """\
#!/usr/bin/env python
-from math import sqrt
+from time import *
from random import uniform
-from time import (sleep, time)
+from math import *
from pyexported.window_setup import *
diff --git a/TurtleArt/taprimitive.py b/TurtleArt/taprimitive.py
index 7f30071..05a44ad 100644
--- a/TurtleArt/taprimitive.py
+++ b/TurtleArt/taprimitive.py
@@ -422,8 +422,8 @@ class Primitive(object):
param_asts = []
for id_ in ['x', 'y', 'z'][:len(new_arg_asts)-1]:
param_asts.append(ast.Name(id=id_, ctx=ast.Param))
- func_ast = ast.Lambda(body=new_arg_asts[0], args=ast.arguments(
- args=param_asts, vararg=None, kwarg=None, defaults=[]))
+ func_ast = ast_extensions.LambdaWithStrBody(
+ body_str=new_arg_asts[0].s, args=param_asts)
return get_call_ast(func_ast, new_arg_asts[1:],
return_type=self.return_type)