Oops, Remove commented lines
authorVitja Makarov <vitja.makarov@gmail.com>
Sun, 9 Jan 2011 09:44:46 +0000 (12:44 +0300)
committerVitja Makarov <vitja.makarov@gmail.com>
Sun, 9 Jan 2011 09:44:46 +0000 (12:44 +0300)
Cython/Compiler/ParseTreeTransforms.py

index 2a97619ea9f8a9b98027f68bd643761e5a4fb633..dd038388204137428db27e9410908195277273cf 100644 (file)
@@ -1370,9 +1370,6 @@ class MarkClosureVisitor(CythonTransform):
         collector.visitchildren(node)
 
         if collector.yields:
-            #if collector.returns and not collector.has_return_value:
-            #    error(collector.returns[0].pos, "'return' inside generators not yet supported ")
-
             gbody = Nodes.GeneratorBodyDefNode(pos=node.pos,
                                                name=node.name,
                                                body=node.body,