forked from VimPlug/jedi
Reindent some code
This commit is contained in:
@@ -500,10 +500,12 @@ def get_modules_containing_name(evaluator, modules, name):
|
|||||||
try:
|
try:
|
||||||
f = open(path, 'rb')
|
f = open(path, 'rb')
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return
|
return None
|
||||||
with f:
|
with f:
|
||||||
code = python_bytes_to_unicode(f.read(), errors='replace')
|
code = python_bytes_to_unicode(f.read(), errors='replace')
|
||||||
if name in code:
|
if name not in code:
|
||||||
|
return None
|
||||||
|
|
||||||
e_sys_path = evaluator.get_sys_path()
|
e_sys_path = evaluator.get_sys_path()
|
||||||
if base_names:
|
if base_names:
|
||||||
module_name = os.path.basename(path)
|
module_name = os.path.basename(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user