From: Bob Halley Date: Wed, 17 Jun 2020 15:00:34 +0000 (-0700) Subject: Now that rdata are immutable, there is no point to the validate() method, so X-Git-Tag: v2.0.0rc1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b50f4c96daa9b94b74c0136aa5a494ea41c61909;p=thirdparty%2Fdnspython.git Now that rdata are immutable, there is no point to the validate() method, so remove it. --- diff --git a/dns/rdata.py b/dns/rdata.py index ae668b3a..90a44249 100644 --- a/dns/rdata.py +++ b/dns/rdata.py @@ -200,21 +200,6 @@ class Rdata: return self.to_wire(origin=origin, canonicalize=True) - def validate(self): - """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. - - Raises various exceptions if there are problems. - - Returns ``None``. - """ - - dns.rdata.from_text(self.rdclass, self.rdtype, self.to_text()) - def __repr__(self): covers = self.covers() if covers == dns.rdatatype.NONE: