def abuse(self): if self.data_type == "ip": return ip_abuse(self.getData()) elif self.data_type == "domain": return domain_abuse(self.getData()) elif self.data_type == "mail": return email_abuse(self.getData()) elif self.data_type == "url": return url_abuse(self.getData()) else: self.error("invalid datatype")
def abuse(self): if self.data_type == "ip": return ip_abuse(self.get_data()) elif self.data_type == "domain": return domain_abuse(self.get_data()) elif self.data_type == "mail": return email_abuse(self.get_data()) elif self.data_type == "url": return url_abuse(self.get_data()) else: self.error("invalid datatype")