Fix a small remaining issue in Python 2
This commit is contained in:
1 parent
4d980d8bd0
commit
8e26017a05
1 file changed
+1
-1
@@ -91,7 +91,7 @@ def eval_node(context, element):
|
|||||||
context_set = eval_trailer(context, context_set, trailer)
|
context_set = eval_trailer(context, context_set, trailer)
|
||||||
|
|
||||||
if had_await:
|
if had_await:
|
||||||
await_context_set = context_set.py__getattribute__("__await__")
|
await_context_set = context_set.py__getattribute__(u"__await__")
|
||||||
if not await_context_set:
|
if not await_context_set:
|
||||||
debug.warning('Tried to run py__await__ on context %s', context)
|
debug.warning('Tried to run py__await__ on context %s', context)
|
||||||
return await_context_set.execute_evaluated()
|
return await_context_set.execute_evaluated()
|
||||||
|
|||||||
Reference in new issue
Block a user