if callable(self.check_record_func):
return self.check_record_func(self, record)
else:
- raise TypeError, "non-callable restriction function"
+ raise TypeError("non-callable restriction function")
else:
return 1
# so it is not ready to be checked :(
# And, of course, two keys with the same name
# cannot be added to dictionary
- raise KeyError, "field key \"" + key + "\" already in record"
+ raise KeyError("field key \"" + key + "\" already in record")
record[key] = value