forked from VimPlug/jedi
Make sure to not load unsafe modules anymore if they are not on the sys path, fixes #760
This commit is contained in:
@@ -142,7 +142,7 @@ class InferenceState(object):
|
||||
|
||||
def get_sys_path(self, **kwargs):
|
||||
"""Convenience function"""
|
||||
return self.project._get_sys_path(self, environment=self.environment, **kwargs)
|
||||
return self.project._get_sys_path(self, **kwargs)
|
||||
|
||||
def infer(self, context, name):
|
||||
def_ = name.get_definition(import_name_always=True)
|
||||
|
||||
Reference in New Issue
Block a user