def _aaaaRecords(self, name):
        """
        Return a tuple of L{dns.RRHeader} instances for all of the IPv6
        addresses in the hosts file.
        """
        return tuple([
            dns.RRHeader(name, dns.AAAA, dns.IN, self.ttl,
                         dns.Record_AAAA(addr, self.ttl))
            for addr
            in searchFileForAll(FilePath(self.file), name)
            if not isIPAddress(addr)])

        Return a tuple of L{dns.RRHeader} instances for all of the IPv6
        addresses in the hosts file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/hosts.py