Author: Mariano Anaya <marianoan...@gmail.com>
Branch: py3.6
Changeset: r91874:b3e217ab4fd8
Date: 2017-07-15 12:40 +0200
http://bitbucket.org/pypy/pypy/changeset/b3e217ab4fd8/

Log:    Comment out async generators temporarily

        This is not yet supported (added in Python 3.6), so at the moment
        it's failing other unrelated parts of the code.

        Should be enabled again, once it's supported.

diff --git a/lib-python/3/_collections_abc.py b/lib-python/3/_collections_abc.py
--- a/lib-python/3/_collections_abc.py
+++ b/lib-python/3/_collections_abc.py
@@ -61,10 +61,12 @@
 _coro.close()  # Prevent ResourceWarning
 del _coro
 ## asynchronous generator ##
-async def _ag(): yield
-_ag = _ag()
-async_generator = type(_ag)
-del _ag
+## This should be reverted, once async generators are supported.
+## Temporary fix.
+#async def _ag(): yield
+#_ag = _ag()
+#async_generator = type(_ag)
+#del _ag
 
 
 ### ONE-TRICK PONIES ###
@@ -237,7 +239,7 @@
         return NotImplemented
 
 
-AsyncGenerator.register(async_generator)
+# AsyncGenerator.register(async_generator)
 
 
 class Iterable(metaclass=ABCMeta):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to