

def get_rdataset(self, rdclass, rdtype, covers=dns.rdatatype.NONE, create=False):
    'Get an rdataset matching the specified properties in the\n        current node.\n\n        None is returned if an rdataset of the specified type and\n        class does not exist and I{create} is not True.\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.\n        @type covers: int\n        @param create: If True, create the rdataset if it is not found.\n        @type create: bool\n        @rtype: dns.rdataset.Rdataset object or None\n        '
    try:
        rds = self.find_rdataset(rdclass, rdtype, covers, create)
    except KeyError:
        rds = None
    return rds

dataset/ETHPy150Open catap/namebench/nb_third_party/dns/node.py Node.get_rdataset/original