1.1 --- a/micropython/__init__.py Sun Sep 12 21:54:04 2010 +0200
1.2 +++ b/micropython/__init__.py Mon Sep 13 01:44:37 2010 +0200
1.3 @@ -562,10 +562,10 @@
1.4 for attrnames in usage:
1.5 objtypes = objtable.all_possible_objects_plus_status(attrnames)
1.6 if not objtypes:
1.7 - print "Warning: usage in %r finds no object supporting all attributes %r" % (from_name, attrnames)
1.8 + print "Warning: usage in %r for %r finds no object supporting all attributes %r" % (from_name, name, attrnames)
1.9 objtypes = objtable.any_possible_objects_plus_status(attrnames)
1.10 if not objtypes:
1.11 - print "Warning: usage in %r finds no object supporting any attributes %r" % (from_name, attrnames)
1.12 + print "Warning: usage in %r for %r finds no object supporting any attributes %r" % (from_name, name, attrnames)
1.13
1.14 all_objtypes.update(objtypes)
1.15
1.16 @@ -609,7 +609,8 @@
1.17 self.use_attribute(from_name, "__init__")
1.18 self._collect_attributes(from_name + ".__init__", objtable)
1.19
1.20 - # Visit attributes on objects not previously visited.
1.21 + # Visit attributes on this object that were queued in case of the object
1.22 + # being referenced.
1.23
1.24 attributes_to_visit = self.attributes_to_visit.get(from_name, [])
1.25