1.1 --- a/rsvplib.py Wed Jun 16 01:08:18 2010 +0200
1.2 +++ b/rsvplib.py Thu Jun 17 00:35:37 2010 +0200
1.3 @@ -43,14 +43,17 @@
1.4 self.int_class = cls.location
1.5 self.int_instance = cls.instance_template_location
1.6 cls = self.machine._get_class("__builtins__", "list")
1.7 - self.list_class = cls.location
1.8 - self.list_instance = cls.instance_template_location
1.9 + if cls is not None:
1.10 + self.list_class = cls.location
1.11 + self.list_instance = cls.instance_template_location
1.12 cls = self.machine._get_class("__builtins__", "IndexError")
1.13 - self.index_error = cls.location
1.14 - self.index_error_instance = cls.instance_template_location
1.15 + if cls is not None:
1.16 + self.index_error = cls.location
1.17 + self.index_error_instance = cls.instance_template_location
1.18 cls = self.machine._get_class("__builtins__", "basestring")
1.19 - self.str_class = cls.location
1.20 - self.str_instance = cls.instance_template_location
1.21 + if cls is not None:
1.22 + self.str_class = cls.location
1.23 + self.str_instance = cls.instance_template_location
1.24
1.25 self.tuple_class = self.machine.tuple_class
1.26 self.type_error_instance = self.machine.type_error_instance