From 5218ffdac0a504cbd0c1b229ac899db9b7f9771c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 20 Jul 2009 21:22:02 +0000 Subject: ëmpty box error message --- (limited to 'tajail.py') diff --git a/tajail.py b/tajail.py index e2b1c85..64ec02e 100644 --- a/tajail.py +++ b/tajail.py @@ -19,7 +19,6 @@ #THE SOFTWARE. # a naive approach to running myfun in a jail -import re from time import * from math import * try: @@ -30,7 +29,7 @@ from taturtle import * def myfunc(lc, f, x): # check to make sure no import calls are made - myf = "def f(x): return " + re.sub("import","",f) + myf = "def f(x): return " + f.replace("import","") userdefined = {} try: exec myf in globals(), userdefined -- cgit v0.9.1