1.1 --- a/inspector.py Sat Sep 03 22:43:44 2016 +0200
1.2 +++ b/inspector.py Sat Sep 03 23:57:34 2016 +0200
1.3 @@ -35,8 +35,10 @@
1.4 "A module inspector."
1.5
1.6 def __init__(self, name, importer):
1.7 +
1.8 + "Initialise the module with basic details."
1.9 +
1.10 BasicModule.__init__(self, name, importer)
1.11 - NameResolving.__init__(self)
1.12
1.13 self.in_class = False
1.14 self.in_conditional = False
1.15 @@ -642,7 +644,7 @@
1.16 if not alias and len(n.names) > 1:
1.17 raise InspectError("Imported modules must be aliased unless a simple module is imported.", path, n)
1.18
1.19 - self.set_module(alias or name.split(".")[0], name)
1.20 + self.set_module(alias or name.split(".")[-1], name)
1.21 self.importer.queue_module(name, self)
1.22
1.23 def process_invocation_node(self, n):