From 2c2edff8980c84a8fcaecac790788fc35c857392 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 28 Jan 2010 21:10:44 +0000 Subject: updated license; tamyblock --- (limited to 'tajail.py') 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) -- cgit v0.9.1