# HG changeset patch # User Paul Boddie # Date 1480276448 -3600 # Node ID ec05d2f5ce98cf2bccd304080930ead21c407192 # Parent 7b4edc3640ee72041427febc43b26f7ccc1823a5 Detect assignments and invocations through original access locations. diff -r 7b4edc3640ee -r ec05d2f5ce98 deducer.py --- a/deducer.py Sun Nov 27 14:29:34 2016 +0100 +++ b/deducer.py Sun Nov 27 20:54:08 2016 +0100 @@ -1781,7 +1781,7 @@ * any static final attribute """ - const_access = self.const_accesses_rev.has_key(location) + const_access = self.const_accesses_rev.get(location) path, name, attrnames, version = location remaining = attrnames.split(".") @@ -1923,8 +1923,8 @@ # Determine the method of access. - is_assignment = location in self.reference_assignments - is_invocation = location in self.reference_invocations + is_assignment = location in self.reference_assignments or const_access in self.reference_assignments + is_invocation = location in self.reference_invocations or const_access in self.reference_invocations # Identified attribute that must be accessed via its parent.