Author: Raffael Tfirst <raffael.tfi...@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")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to