1.1 --- a/fixnames.py Sun Jan 07 23:44:39 2007 +0100
1.2 +++ b/fixnames.py Mon Jan 08 23:37:53 2007 +0100
1.3 @@ -165,9 +165,10 @@
1.4 self.namespace.merge_namespace(namespace)
1.5
1.6 # NOTE: Avoid PEP 227 (nested scopes) whilst permitting references to a
1.7 - # NOTE: subprogram within itself.
1.8 + # NOTE: subprogram within itself. Do not define the name of the function
1.9 + # NOTE: within a method definition.
1.10
1.11 - if hasattr(node, "name") and node.name is not None:
1.12 + if getattr(node, "name", None) is not None and not getattr(node, "is_method", 0):
1.13 self.namespace.store(node.name)
1.14
1.15 # Register the names of parameters in the namespace.