]> granicus.if.org Git - python/commitdiff
Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper
authorYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 04:41:16 +0000 (00:41 -0400)
committerYury Selivanov <yselivanov@sprymix.com>
Fri, 3 Jul 2015 04:41:16 +0000 (00:41 -0400)
Lib/asyncio/coroutines.py

index a70eb1dd91bd0b9cd9e5fd563b63fcb98cf6f710..15475f23b410b3579067bbf06237b4d80e8ba6ca 100644 (file)
@@ -144,6 +144,14 @@ class CoroWrapper:
 
         __await__ = __iter__ # make compatible with 'await' expression
 
+        @property
+        def gi_yieldfrom(self):
+            return self.gen.gi_yieldfrom
+
+        @property
+        def cr_await(self):
+            return self.gen.cr_await
+
         @property
         def cr_running(self):
             return self.gen.cr_running