[pypy-commit] pypy py3.5-async: (Forgot braces at if)
raffael_t
pypy.commits at gmail.com
Sun Jul 24 12:53:54 EDT 2016
Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5-async
Changeset: r85848:c6060c5133e5
Date: 2016-07-24 18:53 +0200
http://bitbucket.org/pypy/pypy/changeset/c6060c5133e5/
Log: (Forgot braces at if)
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1034,9 +1034,9 @@
space = self.space
w_value = self.popvalue()
w_gen = self.peekvalue()
- if w_gen.descr_gi_code(w_gen).co_flags & consts.CO_COROUTINE and
+ if (w_gen.descr_gi_code(w_gen).co_flags & consts.CO_COROUTINE and
not self.pycode.co_flags & (consts.CO_COROUTINE |
- consts.CO_ITERABLE_COROUTINE):
+ consts.CO_ITERABLE_COROUTINE)):
raise oefmt(self.space.w_TypeError,
"cannot 'yield from' a coroutine object "
"from a generator")
More information about the pypy-commit
mailing list