persistence

This commit is contained in:
Lieuwe 2011-02-26 21:33:43 +01:00
parent 7d615c2a87
commit 3ff776577c

View File

@ -95,10 +95,10 @@ def handle(txt):
def _handle(txt):
#print "handling '%s'"%txt
try:
sys.stdout.write(repr(eval(tmp)))
sys.stdout.write(repr(eval(tmp,handle.glob)))
except:
try:
exec txt
exec txt,handle.glob
except Exception as ex:
error(ex)