

def find_rdataset(self, rdclass, rdtype, covers=dns.rdatatype.NONE, create=False):
    'Find an rdataset matching the specified properties in the\n        current node.\n\n        @param rdclass: The class of the rdataset\n        @type rdclass: int\n        @param rdtype: The type of the rdataset\n        @type rdtype: int\n        @param covers: The covered type.  Usually this value is\n        dns.rdatatype.NONE, but if the rdtype is dns.rdatatype.SIG or\n        dns.rdatatype.RRSIG, then the covers value will be the rdata\n        type the SIG/RRSIG covers.  The library treats the SIG and RRSIG\n        types as if they were a family of\n        types, e.g. RRSIG(A), RRSIG(NS), RRSIG(SOA).  This makes RRSIGs much\n        easier to work with than if RRSIGs covering different rdata\n        types were aggregated into a single RRSIG rdataset.\n        @type covers: int\n        @param create: If True, create the rdataset if it is not found.\n        @type create: bool\n        @raises KeyError: An rdataset of the desired type and class does\n        not exist and I{create} is not True.\n        @rtype: dns.rdataset.Rdataset object\n        '
    for rds in self.rdatasets:
        if rds.match(rdclass, rdtype, covers):
            return rds
    if (not create):
        raise KeyError
    rds = dns.rdataset.Rdataset(rds, rdtype)
    self.rdatasets.append(rds)
    return rds

dataset/ETHPy150Open catap/namebench/nb_third_party/dns/node.py Node.find_rdataset/VarMisuse@76/534 `rdclass`->`rds`