1.1 --- a/annotate.py Wed Dec 06 00:48:29 2006 +0100
1.2 +++ b/annotate.py Wed Dec 06 23:54:48 2006 +0100
1.3 @@ -117,12 +117,12 @@
1.4 types possible when the means of constructing the namespace may depend on
1.5 run-time behaviour.
1.6
1.7 - Covered: Assign, CheckExc, Conditional, InvokeBlock, InvokeFunction,
1.8 + Covered: Assign, CheckExc, Conditional, Global, InvokeBlock, InvokeFunction,
1.9 LoadAttr, LoadExc, LoadName, LoadRef, LoadTemp, Module, Not, Pass,
1.10 Raise, ReleaseTemp, ReturnFromBlock, ReturnFromFunction, StoreAttr,
1.11 StoreName, StoreTemp, Subprogram, Try.
1.12
1.13 - Missing: Global, Import.
1.14 + Missing: Import.
1.15 """
1.16
1.17 def __init__(self):
1.18 @@ -357,6 +357,15 @@
1.19
1.20 return conditional
1.21
1.22 + def visitGlobal(self, global_):
1.23 +
1.24 + """
1.25 + Return the 'global_' node unprocessed since namespaces should have
1.26 + already been altered to take global names into consideration.
1.27 + """
1.28 +
1.29 + return global_
1.30 +
1.31 def _visitInvoke(self, invoke, invocation_types, have_args):
1.32
1.33 """