# HG changeset patch # User paulb@localhost.localdomain # Date 1169683413 -3600 # Node ID 7ea581069c2e337ecea0070f7ff099bf93676657 # Parent c386e98b9322a0cf948230b088303a5fc3676e68 Fixed nested scopes workaround to only add function names to namespaces - not module names as well. diff -r c386e98b9322 -r 7ea581069c2e fixnames.py --- a/fixnames.py Thu Jan 25 00:43:56 2007 +0100 +++ b/fixnames.py Thu Jan 25 01:03:33 2007 +0100 @@ -168,7 +168,7 @@ # NOTE: subprogram within itself. Do not define the name of the function # NOTE: within a method definition. - if getattr(node, "name", None) is not None and not getattr(node, "is_method", 0): + if isinstance(node, Subprogram) and getattr(node, "name", None) is not None and not getattr(node, "is_method", 0): self.namespace.store(node.name) # Register the names of parameters in the namespace.