Use the await method properly and just use it instead of some crazy things

This commit is contained in:
Dave Halter committed 2018-02-21 00:27:15 +01:00
1 parent bf01b9d47c
commit bc0210af70
3 files changed
+8 -11

No files matched your search

+2 -1
View File
@@ -18,7 +18,8 @@ class AsyncBase(BuiltinOverwrite):
class Coroutine(AsyncBase):
special_object_identifier = u'COROUTINE_TYPE'
def execute_await(self):
@publish_method('__await__')
def _await(self):
return self._func_execution_context.get_return_values()