Author: Raffael Tfirst <[email protected]>
Branch: py3.5-async
Changeset: r85697:7db7039d9d40
Date: 2016-07-14 17:52 +0200
http://bitbucket.org/pypy/pypy/changeset/7db7039d9d40/
Log: Apply cpython 3.5.1 change regarding async function flag
diff --git a/pypy/interpreter/astcompiler/codegen.py
b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -405,7 +405,7 @@
oparg |= num_annotations << 16
code, qualname = self.sub_scope(AsyncFunctionCodeGenerator, func.name,
func,
func.lineno)
- code.co_flags |= consts.CO_GENERATOR
+ code.co_flags |= consts.CO_COROUTINE
self._make_function(code, oparg, qualname=qualname)
# Apply decorators.
if func.decorator_list:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit