1.1 --- a/translator.py Tue Dec 13 00:59:23 2016 +0100
1.2 +++ b/translator.py Tue Dec 13 17:57:33 2016 +0100
1.3 @@ -421,12 +421,13 @@
1.4 if name in ("dict", "list", "tuple"):
1.5 return self.process_literal_sequence_node(n, name, ref, TrLiteralSequenceRef)
1.6 else:
1.7 + value = self.get_constant_value(n.value)
1.8 path = self.get_namespace_path()
1.9 - local_number = self.importer.all_constants[path][n.value]
1.10 + local_number = self.importer.all_constants[path][value]
1.11 constant_name = "$c%d" % local_number
1.12 objpath = self.get_object_path(constant_name)
1.13 number = self.optimiser.constant_numbers[objpath]
1.14 - return TrConstantValueRef(constant_name, ref.instance_of(), n.value, number)
1.15 + return TrConstantValueRef(constant_name, ref.instance_of(), value, number)
1.16
1.17 # Namespace translation.
1.18