1.1 --- a/micropython/__init__.py Sun May 08 18:56:14 2011 +0200
1.2 +++ b/micropython/__init__.py Sun May 08 20:31:23 2011 +0200
1.3 @@ -692,18 +692,15 @@
1.4 return self.constant_values[const]
1.5
1.6 def get_constant_type_name(self, value):
1.7 +
1.8 + "Return the type name for the given constant 'value'."
1.9 +
1.10 return value.__class__.__name__
1.11
1.12 def make_constant(self, value):
1.13
1.14 "Make and return a constant for the given 'value'."
1.15
1.16 - # Ensure the presence of the constant's type.
1.17 -
1.18 - name = self.get_constant_type_name(value)
1.19 - if self.modules.has_key("__builtins__"):
1.20 - attr = self.modules["__builtins__"].get(name)
1.21 -
1.22 # Make a constant object and return it.
1.23
1.24 const = micropython.data.Const(value)