mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-22 00:38:28 +08:00
added source_to_unicode method to deal with different encodings, davidhalter/jedi-vim#48
This commit is contained in:
@@ -42,7 +42,7 @@ def get_directory_modules_for_name(mods, name):
|
||||
|
||||
def check_fs(path):
|
||||
with open(path) as f:
|
||||
source = f.read()
|
||||
source = modules.source_to_unicode(f.read())
|
||||
if name in source:
|
||||
return modules.Module(path, source).parser.module
|
||||
|
||||
|
||||
Reference in New Issue
Block a user