def check_string(self):
if isinstance(self.data, (str, unicode)):
return True
if self.data is None:
return True
self.error = self._MESSAGES[self.STRING].format(data_type=type(self.data).__name__)
return False
评论列表
文章目录