Commit a0b0839e authored by Stefan Behnel's avatar Stefan Behnel

revert last change - broke generators

parent f54a0301
......@@ -3021,10 +3021,6 @@ class GeneratorDefNode(DefNode):
self.gbody.local_scope = self.local_scope
self.gbody.analyse_declarations(env)
def declare_pyfunction(self, env):
super(GeneratorDefNode, self).declare_pyfunction(env)
self.entry.signature = TypeSlots.pyfunction_noargs
def generate_function_body(self, env, code):
body_cname = self.gbody.entry.func_cname
generator_cname = '%s->%s' % (Naming.cur_scope_cname, Naming.obj_base_cname)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment