[Zope-Checkins] CVS: Zope/lib/python/RestrictedPython - RestrictionMutator.py:1.6

Shane Hathaway shane@digicool.com
Mon, 27 Aug 2001 10:40:21 -0400


Update of /cvs-repository/Zope/lib/python/RestrictedPython
In directory cvs.zope.org:/tmp/cvs-serv15860

Modified Files:
	RestrictionMutator.py 
Log Message:
Merged recent changes to the compiler package, adding "yield" support and
fixing bugs.


=== Zope/lib/python/RestrictedPython/RestrictionMutator.py 1.5 => 1.6 ===
         self.error(node, 'Exec statements are not allowed.')
 
+    def visitYield(self, node, walker):
+        self.error(node, 'Yield statements are not allowed.')
+
     def visitClass(self, node, walker):
         # Should classes be allowed at all??
         self.checkName(node, node.name)