diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-01-28 21:10:44 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-01-28 21:10:44 (GMT) |
commit | 2c2edff8980c84a8fcaecac790788fc35c857392 (patch) | |
tree | 070eccbac089fdee02e07c2e21b9111f2658a58e /tajail.py | |
parent | 267488a2b99878a400a69591332d32764df1087c (diff) |
updated license; tamyblock
Diffstat (limited to 'tajail.py')
-rw-r--r-- | tajail.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) |