summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-03 04:41:16 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-07-03 04:41:16 (GMT)
commit09e60588389710232030a39b1ae9ba99542ba602 (patch)
tree93dc3d1242a8d2a43038286dba42e1cbe7738683 /Lib/asyncio
parentd3a2a95125167564aed33286933dd224a1f47b7e (diff)
downloadcpython-09e60588389710232030a39b1ae9ba99542ba602.zip
cpython-09e60588389710232030a39b1ae9ba99542ba602.tar.gz
cpython-09e60588389710232030a39b1ae9ba99542ba602.tar.bz2
Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/coroutines.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
index a70eb1d..15475f2 100644
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -145,6 +145,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