1.1 --- a/annotate.py Sun Jan 07 23:44:39 2007 +0100
1.2 +++ b/annotate.py Mon Jan 08 23:37:53 2007 +0100
1.3 @@ -949,9 +949,10 @@
1.4 using_module_namespace = 0
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(target, "name") and target.name is not None:
1.12 + if getattr(target, "name", None) is not None and not getattr(target, "is_method", 0):
1.13 namespace.store(target.name, [Attribute(None, target)])
1.14
1.15 # Process the subprogram.