1
0
forked from VimPlug/jedi

Fix issues with a recent refactoring

This commit is contained in:
Dave Halter
2018-01-20 21:21:58 +01:00
parent 27a3be3b42
commit 20d64cf2b3
6 changed files with 18 additions and 7 deletions

View File

@@ -360,7 +360,7 @@ class Evaluator(object):
scope_node = parent_scope(node)
return from_scope_node(scope_node, is_nested=True, node_is_object=node_is_object)
def parse_and_get_code(self, code, path, **kwargs):
def parse_and_get_code(self, code=None, path=None, **kwargs):
if self.allow_different_encoding:
if code is None:
with open(path, 'rb') as f: