1
0
forked from VimPlug/jedi

Start creating access objects in a different way

This commit is contained in:
Dave Halter
2017-12-03 19:37:03 +01:00
parent 3c78aad8b1
commit 15d9e64281
4 changed files with 64 additions and 34 deletions
+7 -2
View File
@@ -74,10 +74,15 @@ def get_faked_with_parent_context(parent_context, name):
raise FakeDoesNotExist
def get_faked_tree_nodes(grammar, string_names):
module = base = _load_faked_module(grammar, string_names[0])
def get_faked_module(grammar, string_name):
module = _load_faked_module(grammar, string_name)
if module is None:
raise FakeDoesNotExist
return module
def get_faked_tree_nodes(grammar, string_names):
module = base = get_faked_module(grammar, string_names[0])
tree_nodes = [module]
for name in string_names[1:]: