# HG changeset patch # User Paul Boddie # Date 1479912465 -3600 # Node ID 5bf57fa80a2f4505961ae4291a2eecc998da3e9d # Parent 06c0ef06e967ce4eb1cf01f2b16409ad45e06d1a Fixed plain accesses occurring in invocation arguments to not be considered as being invoked themselves. diff -r 06c0ef06e967 -r 5bf57fa80a2f inspector.py --- a/inspector.py Wed Nov 23 15:25:48 2016 +0100 +++ b/inspector.py Wed Nov 23 15:47:45 2016 +0100 @@ -740,13 +740,15 @@ # Process the expression, obtaining any identified reference. name_ref = self.process_structure_node(n.node) - self.in_invocation = in_invocation + self.in_invocation = False # Process the arguments. for arg in n.args: self.process_structure_node(arg) + self.in_invocation = in_invocation + # Detect class invocations. if isinstance(name_ref, ResolvedNameRef) and name_ref.has_kind(""):