summaryrefslogtreecommitdiff
path: root/inspector.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2012-04-24 17:16:11 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2012-04-24 17:16:11 +0200
commite3614ddca539ccce8c1e5a5898b0a61a27e848bc (patch)
tree028052c630686301494e5033e5c44949a82951d5 /inspector.py
parentecf237083fa219e40e186082195fe25781f2300d (diff)
downloadastroid-e3614ddca539ccce8c1e5a5898b0a61a27e848bc.tar.gz
get_module_part should be given a context_file. Closes pyreverse crash #92362
Diffstat (limited to 'inspector.py')
-rw-r--r--inspector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/inspector.py b/inspector.py
index a4abd1f..e6672a4 100644
--- a/inspector.py
+++ b/inspector.py
@@ -254,7 +254,7 @@ class Linker(IdGeneratorMixIn, LocalsVisitor):
if fullname.find('.') > -1:
try:
# XXX: don't use get_module_part, missing package precedence
- fullname = get_module_part(fullname)
+ fullname = get_module_part(fullname, context_file)
except ImportError:
continue
if fullname != basename: