Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tajail.py
diff options
context:
space:
mode:
Diffstat (limited to 'tajail.py')
-rw-r--r--tajail.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tajail.py b/tajail.py
index 014ddad..10ec9d9 100644
--- a/tajail.py
+++ b/tajail.py
@@ -1,4 +1,4 @@
-#Copyright (c) 2009, Walter Bender (on behalf of Sugar Labs)
+#Copyright (c) 2009-10, Walter Bender (on behalf of Sugar Labs)
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
@@ -18,12 +18,12 @@
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#THE SOFTWARE.
-# a naive approach to running myfun in a jail
+# A naive approach to running myfunc in a jail
from time import *
from math import *
try:
from numpy import *
-except:
+except ImportError:
pass
from tacanvas import *
@@ -39,7 +39,6 @@ def myfunc(lc, f, x):
def myfunc_import(lc, f, x):
userdefined = {}
- print f
exec f in globals(), userdefined
return userdefined['myblock'](lc,x)