def validate(self):
    "Check that the current contents of the rdata's fields are\n        valid.  If you change an rdata by assigning to its fields,\n        it is a good idea to call validate() when you are done making\n        changes.\n        "
    dns.rdata.from_text(self.rdclass, self.rdtype, self.to_text())
Check that the current contents of the rdata's fields are
valid.  If you change an rdata by assigning to its fields,
it is a good idea to call validate() when you are done making
changes.
def validate(self):
    "Check that the current contents of the rdata's fields are\n        valid.  If you change an rdata by assigning to its fields,\n        it is a good idea to call validate() when you are done making\n        changes.\n        "
    dns.rdata.from_text(self.rdclass, self.rdtype, self.to_text())