[Python-checkins] cpython (3.4): Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper

yury.selivanov python-checkins at python.org
Fri Jul 3 06:42:13 CEST 2015


https://hg.python.org/cpython/rev/34460219c0e0
changeset:   96769:34460219c0e0
branch:      3.4
parent:      96762:978bc1ff43a7
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Fri Jul 03 00:41:16 2015 -0400
summary:
  Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper

files:
  Lib/asyncio/coroutines.py |  8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -145,6 +145,14 @@
         __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
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list