# HG changeset patch # User paulb@jeremy # Date 1161478672 -7200 # Node ID 6c827366c4c6eed0a03e3ca30a25eb9c30d55d0c # Parent 896b313225a44f9b71ba728259170323173e2d43 Added a warning for undefined names. diff -r 896b313225a4 -r 6c827366c4c6 annotate.py --- a/annotate.py Sun Oct 22 02:57:22 2006 +0200 +++ b/annotate.py Sun Oct 22 02:57:52 2006 +0200 @@ -285,7 +285,10 @@ accesses = {} non_accesses = {} for attr in self.namespace.types: - for attribute, accessor in get_attributes(attr.type, loadattr.name): + attributes = get_attributes(attr.type, loadattr.name) + if not attributes: + print "No attributes for", loadattr.name, "in", attr.type + for attribute, accessor in attributes: if attribute is not None: types.append(attribute) if not accesses.has_key(attr.type):