[Zope-Checkins] CVS: Zope2 - Eval.py:1.1.2.9
shane@digicool.com
shane@digicool.com
Fri, 27 Apr 2001 15:48:37 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/RestrictedPython
In directory korak:/tmp/cvs-serv14578
Modified Files:
Tag: RestrictedPythonBranch
Eval.py
Log Message:
Catch syntax errors early on
--- Updated File Eval.py in package Zope2 --
--- Eval.py 2001/04/27 15:19:41 1.1.2.8
+++ Eval.py 2001/04/27 19:48:36 1.1.2.9
@@ -118,6 +118,7 @@
self.__name__ = expr
expr = translate(expr, nltosp)
self.expr = expr
+ self.prepUnrestrictedCode() # Catch syntax errors.
def prepRestrictedCode(self):
if self.rcode is None: