diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-05-25 12:20:14 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-05-25 12:20:14 +0200 |
commit | ccf3f86515eda5797c4e4cd450db7173441feba8 (patch) | |
tree | 2ee7a70367bcaeea5a88c1110f13d241bd5cb971 /Cython/Compiler/ModuleNode.py | |
parent | f8c0aafb0e5297df5eab82cd2ea46f0967d15cff (diff) | |
download | cython-ccf3f86515eda5797c4e4cd450db7173441feba8.tar.gz |
implement 'async for' loop statement (PEP 492)
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 5aaae67e7..42a63b40e 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2071,7 +2071,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("%s = PyBytes_FromStringAndSize(\"\", 0); %s" % ( Naming.empty_bytes, code.error_goto_if_null(Naming.empty_bytes, self.pos))) - for ext_type in ('CyFunction', 'FusedFunction', 'Coroutine', 'Generator'): + for ext_type in ('CyFunction', 'FusedFunction', 'Coroutine', 'Generator', 'StopAsyncIteration'): code.putln("#ifdef __Pyx_%s_USED" % ext_type) code.put_error_if_neg(self.pos, "__pyx_%s_init()" % ext_type) code.putln("#endif") |