Commit 449da847 authored by Stefan Behnel's avatar Stefan Behnel

fix "abc" module patching for Coroutine type

parent b3be99a2
...@@ -2142,7 +2142,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -2142,7 +2142,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("/*--- Execution code ---*/") code.putln("/*--- Execution code ---*/")
code.mark_pos(None) code.mark_pos(None)
code.putln("#ifdef __Pyx_Generator_USED") code.putln("#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)")
code.put_error_if_neg(self.pos, "__Pyx_patch_abc()") code.put_error_if_neg(self.pos, "__Pyx_patch_abc()")
code.putln("#endif") code.putln("#endif")
......
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