From a2ceaf19870ef696505ea057e04b01944effc2d6 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 14 Sep 2013 23:12:09 +0430 Subject: [PATCH] fixed import problems in python3.3 --- jedi/_compatibility.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index 9e893788..7305214b 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -33,7 +33,9 @@ def find_module_py33(string, path=None): module_path = loader.get_filename(string) module_file = open(module_path) except AttributeError: - module_path = loader.load_module(string).__name__ + # is builtin module + loader.load_module(string) + module_path = string module_file = None return module_file, module_path, is_package