[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Zope/lib/python/RestrictedPython - RestrictionMutator.py:1.6
From:       Shane Hathaway <shane () digicool ! com>
Date:       2001-08-27 14:40:21
[Download RAW message or body]

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)


_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://lists.zope.org/mailman/listinfo/zope-checkins

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic