micropython/inspect.py | raw changeset files shortlog |
1.1 --- a/micropython/inspect.py Sat Apr 30 23:36:09 2011 +0200 1.2 +++ b/micropython/inspect.py Sun May 01 00:37:51 2011 +0200 1.3 @@ -801,6 +801,8 @@ 1.4 def visitConst(self, node): 1.5 1.6 # Register the constant, if necessary, returning the resulting object. 1.7 + # The type name is noted as being used, thus preserving the class in any 1.8 + # generated program. 1.9 1.10 self.use_name(self.importer.get_constant_type_name(node.value), node) 1.11 return self.importer.make_constant(node.value)