From b50f4c96daa9b94b74c0136aa5a494ea41c61909 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 17 Jun 2020 08:00:34 -0700 Subject: [PATCH] Now that rdata are immutable, there is no point to the validate() method, so remove it. --- dns/rdata.py | 15 --------------- 1 file changed, 15 deletions(-) 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: -- 2.47.3