Preparations for some async changes
This commit is contained in:
1 parent
7bd3669220
commit
11f3eece6d
7 files changed
+62
-11
No files matched your search
@@ -99,10 +99,7 @@ def eval_node(context, element):
|
||||
context_set = eval_trailer(context, context_set, trailer)
|
||||
|
||||
if had_await:
|
||||
await_context_set = context_set.py__getattribute__(u"__await__")
|
||||
if not await_context_set:
|
||||
debug.warning('Tried to run py__await__ on context %s', context)
|
||||
return await_context_set.execute_evaluated().py__stop_iteration_returns()
|
||||
return context_set.py__await__().py__stop_iteration_returns()
|
||||
return context_set
|
||||
elif typ in ('testlist_star_expr', 'testlist',):
|
||||
# The implicit tuple in statements.
|
||||
|
||||
Reference in new issue
Block a user