1.1 --- a/deducer.py Wed Mar 08 14:53:01 2017 +0100
1.2 +++ b/deducer.py Thu Mar 09 21:48:19 2017 +0100
1.3 @@ -1680,10 +1680,21 @@
1.4 access_location = self.const_accesses[access_location]
1.5
1.6 location, name, attrnames, access_number = access_location
1.7 + attrnames = attrnames and attrnames.split(".")
1.8 + remaining = attrnames and len(attrnames) > 1
1.9 +
1.10 + # Alias has remaining attributes: reference details do not
1.11 + # correspond to the accessor; the remaining attributes would
1.12 + # need to be traversed first.
1.13 +
1.14 + if remaining:
1.15 + return
1.16
1.17 # Alias references an attribute access.
1.18
1.19 - if attrnames:
1.20 + attrname = attrnames and attrnames[0]
1.21 +
1.22 + if attrname:
1.23 attrs = []
1.24 for attrtype, object_type, attr in self.referenced_attrs[access_location]:
1.25 attrs.append(attr)