1.1 --- a/deducer.py Sun Nov 27 14:29:34 2016 +0100
1.2 +++ b/deducer.py Sun Nov 27 20:54:08 2016 +0100
1.3 @@ -1781,7 +1781,7 @@
1.4 * any static final attribute
1.5 """
1.6
1.7 - const_access = self.const_accesses_rev.has_key(location)
1.8 + const_access = self.const_accesses_rev.get(location)
1.9
1.10 path, name, attrnames, version = location
1.11 remaining = attrnames.split(".")
1.12 @@ -1923,8 +1923,8 @@
1.13
1.14 # Determine the method of access.
1.15
1.16 - is_assignment = location in self.reference_assignments
1.17 - is_invocation = location in self.reference_invocations
1.18 + is_assignment = location in self.reference_assignments or const_access in self.reference_assignments
1.19 + is_invocation = location in self.reference_invocations or const_access in self.reference_invocations
1.20
1.21 # Identified attribute that must be accessed via its parent.
1.22