# HG changeset patch # User Paul Boddie # Date 1475757744 -7200 # Node ID 589c3a257c010af180c0d39618af94abd222bd6f # Parent d4cf5e36b192f65c37b5cc07752636bde5c25bd0 Prevent parts of attribute expressions from being associated with invocations. diff -r d4cf5e36b192 -r 589c3a257c01 inspector.py --- a/inspector.py Thu Oct 06 14:29:02 2016 +0200 +++ b/inspector.py Thu Oct 06 14:42:24 2016 +0200 @@ -364,7 +364,11 @@ # Obtain any completed chain and return the reference to it. + in_invocation = self.in_invocation + self.in_invocation = False name_ref = self.process_attribute_chain(n) + self.in_invocation = in_invocation + if self.have_access_expression(n): return name_ref