1
0
forked from VimPlug/jedi

also moved scan_statement away from dynamic

This commit is contained in:
Dave Halter
2014-01-07 15:06:11 +01:00
parent a5fa739960
commit 359f3ed4a9
4 changed files with 41 additions and 43 deletions

View File

@@ -6,6 +6,7 @@ from jedi import settings
from jedi._compatibility import use_metaclass, is_py3k
from jedi.parser import representation as pr
from jedi.evaluate import builtin
from jedi.evaluate import helpers
from jedi.evaluate.cache import CachedMetaClass, memoize_default
@@ -329,9 +330,7 @@ def _check_array_additions(evaluator, compare_array, module, is_list):
# check recursion
continue
# TODO should be deleted in the future
from jedi.evaluate import dynamic
res += check_calls(dynamic._scan_statement(stmt, n), n)
res += check_calls(helpers.scan_statement(stmt, n), n)
evaluator.recursion_detector.pop_stmt()
# reset settings
settings.dynamic_params_for_other_modules = temp_param_add