Skip to content

Commit

Permalink
Fixed follow_definition test
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrac committed Mar 27, 2013
1 parent d481a7a commit de849fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jedi/_compatibility.py
Expand Up @@ -24,6 +24,8 @@ def find_module(string, path=None):
importing = None
if path is not None:
importing = importlib.find_loader(string, path)
if importing is None:
raise ImportError
else:
importing = importlib.find_loader(string)

Expand All @@ -39,7 +41,7 @@ def find_module(string, path=None):
returning = (None, None, False)
else:
returning = (None, importing.load_module(string).__name__, False)

return returning
else:
def find_module(string, path=None):
Expand Down

0 comments on commit de849fb

Please sign in to comment.