1
0
forked from VimPlug/jedi

Use builtins_module instead of BUILTINS

This commit is contained in:
Dave Halter
2017-12-10 18:52:51 +01:00
parent afb73876ac
commit 3a7bc92863
10 changed files with 20 additions and 22 deletions

View File

@@ -207,7 +207,7 @@ class CompiledInstance(AbstractInstanceContext):
# I don't think that dynamic append lookups should happen here. That
# sounds more like something that should go to py__iter__.
if self.class_context.name.string_name in ['list', 'set'] \
and self.parent_context.get_root_context() == self.evaluator.BUILTINS:
and self.parent_context.get_root_context() == self.evaluator.builtins_module:
# compare the module path with the builtin name.
self.var_args = iterable.get_dynamic_array_instance(self)