Move execute_evaluated to a helper function
This commit is contained in:
1 parent
faba29a42b
commit
7a48fdc5f6
10 files changed
+30
-22
No files matched your search
@@ -2,6 +2,7 @@ from jedi._compatibility import unicode
|
||||
from jedi.evaluate.compiled.context import CompiledObject, CompiledName, \
|
||||
CompiledObjectFilter, CompiledContextName, create_from_access_path, \
|
||||
create_from_name
|
||||
from jedi.evaluate.helpers import execute_evaluated
|
||||
|
||||
|
||||
def builtin_from_name(evaluator, string):
|
||||
@@ -29,7 +30,7 @@ def get_special_object(evaluator, identifier):
|
||||
|
||||
|
||||
def get_string_context_set(evaluator):
|
||||
return builtin_from_name(evaluator, u'str').execute_evaluated()
|
||||
return execute_evaluated(builtin_from_name(evaluator, u'str'))
|
||||
|
||||
|
||||
def load_module(evaluator, **kwargs):
|
||||
|
||||
Reference in new issue
Block a user