def _get_ips(self, file_data, ips):
    ips_in_mail = re.findall(ip_regexc, file_data)
    ip6_in_mail = re.findall(ipv6_regexc, file_data)
    if ip6_in_mail:
        for ip6_tuple in ip6_in_mail:
            ip6s = [x for x in ip6_tuple if x]
            ips_in_mail.extend(ip6s)
    if ips_in_mail:
        ips_in_mail = set(ips_in_mail)
        ips_in_mail = [x for x in ips_in_mail if self._is_ip(x)]
        if ips_in_mail:
            ips |= set(ips_in_mail)
def _get_ips(self, file_data, ips):
    ips_in_mail = re.findall(ip_regexc, file_data)
    ip6_in_mail = re.findall(ipv6_regexc, file_data)
    if ip6_in_mail:
        for ip6_tuple in ip6_in_mail:
            ip6s = [x for x in ip6_tuple if x]
            ips_in_mail.extend(ip6s)
    if ips_in_mail:
        ips_in_mail = set(ips_in_mail)
        ips_in_mail = [x for x in ips_in_mail if self._is_ip(x)]
        if ips_in_mail:
            ips |= set(ips_in_mail)