1.1 --- a/micropython/inspect.py Sun Feb 10 21:20:38 2008 +0100
1.2 +++ b/micropython/inspect.py Sun Feb 10 22:05:23 2008 +0100
1.3 @@ -161,7 +161,7 @@
1.4 if not self.namespace.has_key(name):
1.5 self.globals.add(name)
1.6 else:
1.7 - raise InspectError(self.full_name(), self.node, "Name %r is global and local in %r" % (name, self))
1.8 + raise InspectError(self.full_name(), self.node, "Name %r is global and local in %r" % (name, self.full_name()))
1.9
1.10 def get_assignments(self, name):
1.11 if self.assignments.has_key(name):
1.12 @@ -420,7 +420,7 @@
1.13 if name not in self.argnames and not self.has_key(name):
1.14 self.globals.add(name)
1.15 else:
1.16 - raise InspectError(self.full_name(), self.node, "Name %r is global and local in %r" % (name, self))
1.17 + raise InspectError(self.full_name(), self.node, "Name %r is global and local in %r" % (name, self.full_name()))
1.18
1.19 def parameters(self):
1.20
1.21 @@ -689,12 +689,12 @@
1.22 if isinstance(expr, Attr):
1.23 if expr.assignments != 1:
1.24 raise InspectError(self.full_name(), node,
1.25 - "Base class %r for %r in %r is not constant." % (base, cls, self))
1.26 + "Base class %r for %r is not constant." % (base, cls.full_name()))
1.27 else:
1.28 cls.add_base(expr.value)
1.29 else: # if expr is None:
1.30 raise InspectError(self.full_name(), node,
1.31 - "Base class %r for %r in %r is not found: it may be hidden in some way." % (base, cls, self))
1.32 + "Base class %r for %r is not found: it may be hidden in some way." % (base, cls.full_name()))
1.33
1.34 # Make a back reference from the node for code generation.
1.35