get_function_execution -> as_context

This commit is contained in:
Dave Halter
2019-08-24 11:11:00 +02:00
parent d913d7d701
commit e0f26dd7a1
5 changed files with 15 additions and 19 deletions

View File

@@ -227,7 +227,7 @@ def _infer_for_statement_string(module_context, string):
module_context,
funcdef
)
func_execution_context = function_value.get_function_execution()
func_execution_context = function_value.as_context()
# Use the module of the param.
# TODO this module is not the module of the param in case of a function
# call. In that case it's the module of the function call.