Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper

This commit is contained in:
Yury Selivanov 2015-07-03 00:41:16 -04:00
parent d3a2a95125
commit 09e6058838
1 changed files with 8 additions and 0 deletions

View 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