def __eq__(self, other):
if isinstance(other, Payload):
return other.content == self.content and other.pattern == self.pattern
elif isinstance(other, six.string_types):
return self.content == other
else:
return False
文章目录