1.1 --- a/fixnames.py Thu Jan 25 00:43:56 2007 +0100
1.2 +++ b/fixnames.py Thu Jan 25 01:03:33 2007 +0100
1.3 @@ -168,7 +168,7 @@
1.4 # NOTE: subprogram within itself. Do not define the name of the function
1.5 # NOTE: within a method definition.
1.6
1.7 - if getattr(node, "name", None) is not None and not getattr(node, "is_method", 0):
1.8 + if isinstance(node, Subprogram) and getattr(node, "name", None) is not None and not getattr(node, "is_method", 0):
1.9 self.namespace.store(node.name)
1.10
1.11 # Register the names of parameters in the namespace.