1.1 --- a/annotate.py Sat Dec 16 01:14:18 2006 +0100
1.2 +++ b/annotate.py Sat Jan 06 00:45:33 2007 +0100
1.3 @@ -948,6 +948,12 @@
1.4 namespace.merge_items(items)
1.5 using_module_namespace = 0
1.6
1.7 + # NOTE: Avoid PEP 227 (nested scopes) whilst permitting references to a
1.8 + # NOTE: subprogram within itself.
1.9 +
1.10 + if hasattr(target, "name") and target.name is not None:
1.11 + namespace.store(target.name, [Attribute(None, target)])
1.12 +
1.13 # Process the subprogram.
1.14 # In order to keep global accesses working, the module namespace must be
1.15 # adjusted.