Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tajail.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tajail.py')
-rw-r--r--TurtleArt/tajail.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/tajail.py b/TurtleArt/tajail.py
index 6d6c293..081248f 100644
--- a/TurtleArt/tajail.py
+++ b/TurtleArt/tajail.py
@@ -29,17 +29,17 @@ from math import *
def myfunc(f, args):
# check to make sure no import calls are made
if len(args) == 1:
- myf = "def f(x): return " + f.replace("import","")
+ myf = 'def f(x): return ' + f.replace('import', '')
userdefined = {}
exec myf in globals(), userdefined
return userdefined.values()[0](args[0])
elif len(args) == 2:
- myf = "def f(x,y): return " + f.replace("import","")
+ myf = 'def f(x, y): return ' + f.replace('import', '')
userdefined = {}
exec myf in globals(), userdefined
return userdefined.values()[0](args[0], args[1])
elif len(args) == 3:
- myf = "def f(x,y,z): return " + f.replace("import","")
+ myf = 'def f(x, y, z): return ' + f.replace('import', '')
userdefined = {}
exec myf in globals(), userdefined
return userdefined.values()[0](args[0], args[1], args[2])