mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-01 22:26:49 +08:00
fixed import problems in python3.3
This commit is contained in:
@@ -33,7 +33,9 @@ def find_module_py33(string, path=None):
|
|||||||
module_path = loader.get_filename(string)
|
module_path = loader.get_filename(string)
|
||||||
module_file = open(module_path)
|
module_file = open(module_path)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
module_path = loader.load_module(string).__name__
|
# is builtin module
|
||||||
|
loader.load_module(string)
|
||||||
|
module_path = string
|
||||||
module_file = None
|
module_file = None
|
||||||
|
|
||||||
return module_file, module_path, is_package
|
return module_file, module_path, is_package
|
||||||
|
|||||||
Reference in New Issue
Block a user