From: Bob Halley Date: Fri, 9 Feb 2024 21:38:24 +0000 (-0800) Subject: minor (but pervasive!) black 2024 stable style changes X-Git-Tag: v2.6.0rc1~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01bd99f61d7aca7ee2d36576a5d0f05be52fc1cc;p=thirdparty%2Fdnspython.git minor (but pervasive!) black 2024 stable style changes --- diff --git a/dns/message.py b/dns/message.py index 21eaaf2f..44cacbd9 100644 --- a/dns/message.py +++ b/dns/message.py @@ -1086,7 +1086,6 @@ def _message_factory_from_opcode(opcode): class _WireReader: - """Wire format reader. parser: the binary parser @@ -1386,7 +1385,6 @@ def from_wire( class _TextReader: - """Text format reader. tok: the tokenizer. diff --git a/dns/node.py b/dns/node.py index c670243c..de85a82d 100644 --- a/dns/node.py +++ b/dns/node.py @@ -70,7 +70,6 @@ class NodeKind(enum.Enum): class Node: - """A Node is a set of rdatasets. A node is either a CNAME node or an "other data" node. A CNAME diff --git a/dns/rdata.py b/dns/rdata.py index 7ed07dcb..024fd8f6 100644 --- a/dns/rdata.py +++ b/dns/rdata.py @@ -600,7 +600,6 @@ class Rdata: @dns.immutable.immutable class GenericRdata(Rdata): - """Generic Rdata Class This class is used for rdata types for which we have no better @@ -643,9 +642,9 @@ class GenericRdata(Rdata): return cls(rdclass, rdtype, parser.get_remaining()) -_rdata_classes: Dict[ - Tuple[dns.rdataclass.RdataClass, dns.rdatatype.RdataType], Any -] = {} +_rdata_classes: Dict[Tuple[dns.rdataclass.RdataClass, dns.rdatatype.RdataType], Any] = ( + {} +) _module_prefix = "dns.rdtypes" diff --git a/dns/rdataset.py b/dns/rdataset.py index 5921a48c..8bff58d7 100644 --- a/dns/rdataset.py +++ b/dns/rdataset.py @@ -46,7 +46,6 @@ class IncompatibleTypes(dns.exception.DNSException): class Rdataset(dns.set.Set): - """A DNS rdataset.""" __slots__ = ["rdclass", "rdtype", "covers", "ttl"] @@ -365,7 +364,6 @@ class Rdataset(dns.set.Set): @dns.immutable.immutable class ImmutableRdataset(Rdataset): # lgtm[py/missing-equals] - """An immutable DNS rdataset.""" _clone_class = Rdataset diff --git a/dns/rdtypes/ANY/AFSDB.py b/dns/rdtypes/ANY/AFSDB.py index 3d287f6e..06a3b970 100644 --- a/dns/rdtypes/ANY/AFSDB.py +++ b/dns/rdtypes/ANY/AFSDB.py @@ -21,7 +21,6 @@ import dns.rdtypes.mxbase @dns.immutable.immutable class AFSDB(dns.rdtypes.mxbase.UncompressedDowncasingMX): - """AFSDB record""" # Use the property mechanism to make "subtype" an alias for the diff --git a/dns/rdtypes/ANY/AMTRELAY.py b/dns/rdtypes/ANY/AMTRELAY.py index dfe7abc3..ed2b072b 100644 --- a/dns/rdtypes/ANY/AMTRELAY.py +++ b/dns/rdtypes/ANY/AMTRELAY.py @@ -32,7 +32,6 @@ class Relay(dns.rdtypes.util.Gateway): @dns.immutable.immutable class AMTRELAY(dns.rdata.Rdata): - """AMTRELAY record""" # see: RFC 8777 diff --git a/dns/rdtypes/ANY/AVC.py b/dns/rdtypes/ANY/AVC.py index 766d5e2d..a27ae2d6 100644 --- a/dns/rdtypes/ANY/AVC.py +++ b/dns/rdtypes/ANY/AVC.py @@ -21,7 +21,6 @@ import dns.rdtypes.txtbase @dns.immutable.immutable class AVC(dns.rdtypes.txtbase.TXTBase): - """AVC record""" # See: IANA dns parameters for AVC diff --git a/dns/rdtypes/ANY/CAA.py b/dns/rdtypes/ANY/CAA.py index 8afb538c..2e6a7e7e 100644 --- a/dns/rdtypes/ANY/CAA.py +++ b/dns/rdtypes/ANY/CAA.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class CAA(dns.rdata.Rdata): - """CAA (Certification Authority Authorization) record""" # see: RFC 6844 diff --git a/dns/rdtypes/ANY/CDNSKEY.py b/dns/rdtypes/ANY/CDNSKEY.py index 38b8a8da..b613409f 100644 --- a/dns/rdtypes/ANY/CDNSKEY.py +++ b/dns/rdtypes/ANY/CDNSKEY.py @@ -30,5 +30,4 @@ from dns.rdtypes.dnskeybase import ( # noqa: F401 lgtm[py/unused-import] @dns.immutable.immutable class CDNSKEY(dns.rdtypes.dnskeybase.DNSKEYBase): - """CDNSKEY record""" diff --git a/dns/rdtypes/ANY/CDS.py b/dns/rdtypes/ANY/CDS.py index 2ff42d9a..8312b972 100644 --- a/dns/rdtypes/ANY/CDS.py +++ b/dns/rdtypes/ANY/CDS.py @@ -21,7 +21,6 @@ import dns.rdtypes.dsbase @dns.immutable.immutable class CDS(dns.rdtypes.dsbase.DSBase): - """CDS record""" _digest_length_by_type = { diff --git a/dns/rdtypes/ANY/CERT.py b/dns/rdtypes/ANY/CERT.py index 30fe863f..f369cc85 100644 --- a/dns/rdtypes/ANY/CERT.py +++ b/dns/rdtypes/ANY/CERT.py @@ -67,7 +67,6 @@ def _ctype_to_text(what): @dns.immutable.immutable class CERT(dns.rdata.Rdata): - """CERT record""" # see RFC 4398 diff --git a/dns/rdtypes/ANY/CNAME.py b/dns/rdtypes/ANY/CNAME.py index 759adb90..665e407c 100644 --- a/dns/rdtypes/ANY/CNAME.py +++ b/dns/rdtypes/ANY/CNAME.py @@ -21,7 +21,6 @@ import dns.rdtypes.nsbase @dns.immutable.immutable class CNAME(dns.rdtypes.nsbase.NSBase): - """CNAME record Note: although CNAME is officially a singleton type, dnspython allows diff --git a/dns/rdtypes/ANY/CSYNC.py b/dns/rdtypes/ANY/CSYNC.py index 315da9ff..2f972f6e 100644 --- a/dns/rdtypes/ANY/CSYNC.py +++ b/dns/rdtypes/ANY/CSYNC.py @@ -32,7 +32,6 @@ class Bitmap(dns.rdtypes.util.Bitmap): @dns.immutable.immutable class CSYNC(dns.rdata.Rdata): - """CSYNC record""" __slots__ = ["serial", "flags", "windows"] diff --git a/dns/rdtypes/ANY/DLV.py b/dns/rdtypes/ANY/DLV.py index 632e90f8..6c134f18 100644 --- a/dns/rdtypes/ANY/DLV.py +++ b/dns/rdtypes/ANY/DLV.py @@ -21,5 +21,4 @@ import dns.rdtypes.dsbase @dns.immutable.immutable class DLV(dns.rdtypes.dsbase.DSBase): - """DLV record""" diff --git a/dns/rdtypes/ANY/DNAME.py b/dns/rdtypes/ANY/DNAME.py index 556bff59..bbf9186c 100644 --- a/dns/rdtypes/ANY/DNAME.py +++ b/dns/rdtypes/ANY/DNAME.py @@ -21,7 +21,6 @@ import dns.rdtypes.nsbase @dns.immutable.immutable class DNAME(dns.rdtypes.nsbase.UncompressedNS): - """DNAME record""" def _to_wire(self, file, compress=None, origin=None, canonicalize=False): diff --git a/dns/rdtypes/ANY/DNSKEY.py b/dns/rdtypes/ANY/DNSKEY.py index f1a63062..6d961a9f 100644 --- a/dns/rdtypes/ANY/DNSKEY.py +++ b/dns/rdtypes/ANY/DNSKEY.py @@ -30,5 +30,4 @@ from dns.rdtypes.dnskeybase import ( # noqa: F401 lgtm[py/unused-import] @dns.immutable.immutable class DNSKEY(dns.rdtypes.dnskeybase.DNSKEYBase): - """DNSKEY record""" diff --git a/dns/rdtypes/ANY/DS.py b/dns/rdtypes/ANY/DS.py index 097ecfa0..58b3108d 100644 --- a/dns/rdtypes/ANY/DS.py +++ b/dns/rdtypes/ANY/DS.py @@ -21,5 +21,4 @@ import dns.rdtypes.dsbase @dns.immutable.immutable class DS(dns.rdtypes.dsbase.DSBase): - """DS record""" diff --git a/dns/rdtypes/ANY/EUI48.py b/dns/rdtypes/ANY/EUI48.py index 7e4e1ff3..c843be50 100644 --- a/dns/rdtypes/ANY/EUI48.py +++ b/dns/rdtypes/ANY/EUI48.py @@ -22,7 +22,6 @@ import dns.rdtypes.euibase @dns.immutable.immutable class EUI48(dns.rdtypes.euibase.EUIBase): - """EUI48 record""" # see: rfc7043.txt diff --git a/dns/rdtypes/ANY/EUI64.py b/dns/rdtypes/ANY/EUI64.py index 68b5820f..f6d7e257 100644 --- a/dns/rdtypes/ANY/EUI64.py +++ b/dns/rdtypes/ANY/EUI64.py @@ -22,7 +22,6 @@ import dns.rdtypes.euibase @dns.immutable.immutable class EUI64(dns.rdtypes.euibase.EUIBase): - """EUI64 record""" # see: rfc7043.txt diff --git a/dns/rdtypes/ANY/GPOS.py b/dns/rdtypes/ANY/GPOS.py index 30aab321..312338f9 100644 --- a/dns/rdtypes/ANY/GPOS.py +++ b/dns/rdtypes/ANY/GPOS.py @@ -44,7 +44,6 @@ def _validate_float_string(what): @dns.immutable.immutable class GPOS(dns.rdata.Rdata): - """GPOS record""" # see: RFC 1712 diff --git a/dns/rdtypes/ANY/HINFO.py b/dns/rdtypes/ANY/HINFO.py index 513c155a..c2c45de0 100644 --- a/dns/rdtypes/ANY/HINFO.py +++ b/dns/rdtypes/ANY/HINFO.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class HINFO(dns.rdata.Rdata): - """HINFO record""" # see: RFC 1035 diff --git a/dns/rdtypes/ANY/HIP.py b/dns/rdtypes/ANY/HIP.py index a20aa1e5..91669139 100644 --- a/dns/rdtypes/ANY/HIP.py +++ b/dns/rdtypes/ANY/HIP.py @@ -27,7 +27,6 @@ import dns.rdatatype @dns.immutable.immutable class HIP(dns.rdata.Rdata): - """HIP record""" # see: RFC 5205 diff --git a/dns/rdtypes/ANY/ISDN.py b/dns/rdtypes/ANY/ISDN.py index 536a35d6..fb01eab3 100644 --- a/dns/rdtypes/ANY/ISDN.py +++ b/dns/rdtypes/ANY/ISDN.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class ISDN(dns.rdata.Rdata): - """ISDN record""" # see: RFC 1183 diff --git a/dns/rdtypes/ANY/L32.py b/dns/rdtypes/ANY/L32.py index 14be01f9..09804c2d 100644 --- a/dns/rdtypes/ANY/L32.py +++ b/dns/rdtypes/ANY/L32.py @@ -8,7 +8,6 @@ import dns.rdata @dns.immutable.immutable class L32(dns.rdata.Rdata): - """L32 record""" # see: rfc6742.txt diff --git a/dns/rdtypes/ANY/L64.py b/dns/rdtypes/ANY/L64.py index d083d403..fb76808e 100644 --- a/dns/rdtypes/ANY/L64.py +++ b/dns/rdtypes/ANY/L64.py @@ -8,7 +8,6 @@ import dns.rdtypes.util @dns.immutable.immutable class L64(dns.rdata.Rdata): - """L64 record""" # see: rfc6742.txt diff --git a/dns/rdtypes/ANY/LOC.py b/dns/rdtypes/ANY/LOC.py index 783d54af..a36a2c10 100644 --- a/dns/rdtypes/ANY/LOC.py +++ b/dns/rdtypes/ANY/LOC.py @@ -105,7 +105,6 @@ def _check_coordinate_list(value, low, high): @dns.immutable.immutable class LOC(dns.rdata.Rdata): - """LOC record""" # see: RFC 1876 diff --git a/dns/rdtypes/ANY/LP.py b/dns/rdtypes/ANY/LP.py index 8a7c5125..312663f1 100644 --- a/dns/rdtypes/ANY/LP.py +++ b/dns/rdtypes/ANY/LP.py @@ -8,7 +8,6 @@ import dns.rdata @dns.immutable.immutable class LP(dns.rdata.Rdata): - """LP record""" # see: rfc6742.txt diff --git a/dns/rdtypes/ANY/MX.py b/dns/rdtypes/ANY/MX.py index 1f9df21f..0c300c5a 100644 --- a/dns/rdtypes/ANY/MX.py +++ b/dns/rdtypes/ANY/MX.py @@ -21,5 +21,4 @@ import dns.rdtypes.mxbase @dns.immutable.immutable class MX(dns.rdtypes.mxbase.MXBase): - """MX record""" diff --git a/dns/rdtypes/ANY/NID.py b/dns/rdtypes/ANY/NID.py index ad54aca3..2f649178 100644 --- a/dns/rdtypes/ANY/NID.py +++ b/dns/rdtypes/ANY/NID.py @@ -8,7 +8,6 @@ import dns.rdtypes.util @dns.immutable.immutable class NID(dns.rdata.Rdata): - """NID record""" # see: rfc6742.txt diff --git a/dns/rdtypes/ANY/NINFO.py b/dns/rdtypes/ANY/NINFO.py index 55bc5614..b177bddb 100644 --- a/dns/rdtypes/ANY/NINFO.py +++ b/dns/rdtypes/ANY/NINFO.py @@ -21,7 +21,6 @@ import dns.rdtypes.txtbase @dns.immutable.immutable class NINFO(dns.rdtypes.txtbase.TXTBase): - """NINFO record""" # see: draft-reid-dnsext-zs-01 diff --git a/dns/rdtypes/ANY/NS.py b/dns/rdtypes/ANY/NS.py index fe453f0d..c3f34ce9 100644 --- a/dns/rdtypes/ANY/NS.py +++ b/dns/rdtypes/ANY/NS.py @@ -21,5 +21,4 @@ import dns.rdtypes.nsbase @dns.immutable.immutable class NS(dns.rdtypes.nsbase.NSBase): - """NS record""" diff --git a/dns/rdtypes/ANY/NSEC.py b/dns/rdtypes/ANY/NSEC.py index a2d98fa7..340525a6 100644 --- a/dns/rdtypes/ANY/NSEC.py +++ b/dns/rdtypes/ANY/NSEC.py @@ -30,7 +30,6 @@ class Bitmap(dns.rdtypes.util.Bitmap): @dns.immutable.immutable class NSEC(dns.rdata.Rdata): - """NSEC record""" __slots__ = ["next", "windows"] diff --git a/dns/rdtypes/ANY/NSEC3.py b/dns/rdtypes/ANY/NSEC3.py index a02f8e77..d71302b7 100644 --- a/dns/rdtypes/ANY/NSEC3.py +++ b/dns/rdtypes/ANY/NSEC3.py @@ -46,7 +46,6 @@ class Bitmap(dns.rdtypes.util.Bitmap): @dns.immutable.immutable class NSEC3(dns.rdata.Rdata): - """NSEC3 record""" __slots__ = ["algorithm", "flags", "iterations", "salt", "next", "windows"] diff --git a/dns/rdtypes/ANY/NSEC3PARAM.py b/dns/rdtypes/ANY/NSEC3PARAM.py index 1a0c0e08..d1e62ebc 100644 --- a/dns/rdtypes/ANY/NSEC3PARAM.py +++ b/dns/rdtypes/ANY/NSEC3PARAM.py @@ -25,7 +25,6 @@ import dns.rdata @dns.immutable.immutable class NSEC3PARAM(dns.rdata.Rdata): - """NSEC3PARAM record""" __slots__ = ["algorithm", "flags", "iterations", "salt"] diff --git a/dns/rdtypes/ANY/OPENPGPKEY.py b/dns/rdtypes/ANY/OPENPGPKEY.py index e5e25727..4d7a4b6c 100644 --- a/dns/rdtypes/ANY/OPENPGPKEY.py +++ b/dns/rdtypes/ANY/OPENPGPKEY.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class OPENPGPKEY(dns.rdata.Rdata): - """OPENPGPKEY record""" # see: RFC 7929 diff --git a/dns/rdtypes/ANY/OPT.py b/dns/rdtypes/ANY/OPT.py index d70e5373..d343dfa5 100644 --- a/dns/rdtypes/ANY/OPT.py +++ b/dns/rdtypes/ANY/OPT.py @@ -28,7 +28,6 @@ import dns.rdata @dns.immutable.immutable class OPT(dns.rdata.Rdata): - """OPT record""" __slots__ = ["options"] diff --git a/dns/rdtypes/ANY/PTR.py b/dns/rdtypes/ANY/PTR.py index 7fd5547d..98c36167 100644 --- a/dns/rdtypes/ANY/PTR.py +++ b/dns/rdtypes/ANY/PTR.py @@ -21,5 +21,4 @@ import dns.rdtypes.nsbase @dns.immutable.immutable class PTR(dns.rdtypes.nsbase.NSBase): - """PTR record""" diff --git a/dns/rdtypes/ANY/RP.py b/dns/rdtypes/ANY/RP.py index 9c64c6e2..9b74549d 100644 --- a/dns/rdtypes/ANY/RP.py +++ b/dns/rdtypes/ANY/RP.py @@ -23,7 +23,6 @@ import dns.rdata @dns.immutable.immutable class RP(dns.rdata.Rdata): - """RP record""" # see: RFC 1183 diff --git a/dns/rdtypes/ANY/RRSIG.py b/dns/rdtypes/ANY/RRSIG.py index 11605026..8beb4237 100644 --- a/dns/rdtypes/ANY/RRSIG.py +++ b/dns/rdtypes/ANY/RRSIG.py @@ -28,7 +28,6 @@ import dns.rdatatype class BadSigTime(dns.exception.DNSException): - """Time in DNS SIG or RRSIG resource record cannot be parsed.""" @@ -52,7 +51,6 @@ def posixtime_to_sigtime(what): @dns.immutable.immutable class RRSIG(dns.rdata.Rdata): - """RRSIG record""" __slots__ = [ diff --git a/dns/rdtypes/ANY/RT.py b/dns/rdtypes/ANY/RT.py index 950f2a06..5a4d45cf 100644 --- a/dns/rdtypes/ANY/RT.py +++ b/dns/rdtypes/ANY/RT.py @@ -21,5 +21,4 @@ import dns.rdtypes.mxbase @dns.immutable.immutable class RT(dns.rdtypes.mxbase.UncompressedDowncasingMX): - """RT record""" diff --git a/dns/rdtypes/ANY/SOA.py b/dns/rdtypes/ANY/SOA.py index bde55e15..09aa8321 100644 --- a/dns/rdtypes/ANY/SOA.py +++ b/dns/rdtypes/ANY/SOA.py @@ -25,7 +25,6 @@ import dns.rdata @dns.immutable.immutable class SOA(dns.rdata.Rdata): - """SOA record""" # see: RFC 1035 diff --git a/dns/rdtypes/ANY/SPF.py b/dns/rdtypes/ANY/SPF.py index c403589a..1df3b705 100644 --- a/dns/rdtypes/ANY/SPF.py +++ b/dns/rdtypes/ANY/SPF.py @@ -21,7 +21,6 @@ import dns.rdtypes.txtbase @dns.immutable.immutable class SPF(dns.rdtypes.txtbase.TXTBase): - """SPF record""" # see: RFC 4408 diff --git a/dns/rdtypes/ANY/SSHFP.py b/dns/rdtypes/ANY/SSHFP.py index 67805452..d2c4b073 100644 --- a/dns/rdtypes/ANY/SSHFP.py +++ b/dns/rdtypes/ANY/SSHFP.py @@ -25,7 +25,6 @@ import dns.rdatatype @dns.immutable.immutable class SSHFP(dns.rdata.Rdata): - """SSHFP record""" # See RFC 4255 diff --git a/dns/rdtypes/ANY/TKEY.py b/dns/rdtypes/ANY/TKEY.py index d5f5fc45..5b490b82 100644 --- a/dns/rdtypes/ANY/TKEY.py +++ b/dns/rdtypes/ANY/TKEY.py @@ -25,7 +25,6 @@ import dns.rdata @dns.immutable.immutable class TKEY(dns.rdata.Rdata): - """TKEY Record""" __slots__ = [ diff --git a/dns/rdtypes/ANY/TLSA.py b/dns/rdtypes/ANY/TLSA.py index c9ba1991..4dffc553 100644 --- a/dns/rdtypes/ANY/TLSA.py +++ b/dns/rdtypes/ANY/TLSA.py @@ -6,5 +6,4 @@ import dns.rdtypes.tlsabase @dns.immutable.immutable class TLSA(dns.rdtypes.tlsabase.TLSABase): - """TLSA record""" diff --git a/dns/rdtypes/ANY/TSIG.py b/dns/rdtypes/ANY/TSIG.py index 1ae87ebe..79423826 100644 --- a/dns/rdtypes/ANY/TSIG.py +++ b/dns/rdtypes/ANY/TSIG.py @@ -26,7 +26,6 @@ import dns.rdata @dns.immutable.immutable class TSIG(dns.rdata.Rdata): - """TSIG record""" __slots__ = [ diff --git a/dns/rdtypes/ANY/TXT.py b/dns/rdtypes/ANY/TXT.py index f4e61930..6d4dae27 100644 --- a/dns/rdtypes/ANY/TXT.py +++ b/dns/rdtypes/ANY/TXT.py @@ -21,5 +21,4 @@ import dns.rdtypes.txtbase @dns.immutable.immutable class TXT(dns.rdtypes.txtbase.TXTBase): - """TXT record""" diff --git a/dns/rdtypes/ANY/URI.py b/dns/rdtypes/ANY/URI.py index 7463e277..2efbb305 100644 --- a/dns/rdtypes/ANY/URI.py +++ b/dns/rdtypes/ANY/URI.py @@ -27,7 +27,6 @@ import dns.rdtypes.util @dns.immutable.immutable class URI(dns.rdata.Rdata): - """URI record""" # see RFC 7553 diff --git a/dns/rdtypes/ANY/X25.py b/dns/rdtypes/ANY/X25.py index 06c14534..8375611d 100644 --- a/dns/rdtypes/ANY/X25.py +++ b/dns/rdtypes/ANY/X25.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class X25(dns.rdata.Rdata): - """X25 record""" # see RFC 1183 diff --git a/dns/rdtypes/ANY/ZONEMD.py b/dns/rdtypes/ANY/ZONEMD.py index 3062843b..c90e3ee1 100644 --- a/dns/rdtypes/ANY/ZONEMD.py +++ b/dns/rdtypes/ANY/ZONEMD.py @@ -11,7 +11,6 @@ import dns.zonetypes @dns.immutable.immutable class ZONEMD(dns.rdata.Rdata): - """ZONEMD record""" # See RFC 8976 diff --git a/dns/rdtypes/CH/A.py b/dns/rdtypes/CH/A.py index e457f38a..583a88ac 100644 --- a/dns/rdtypes/CH/A.py +++ b/dns/rdtypes/CH/A.py @@ -23,7 +23,6 @@ import dns.rdtypes.mxbase @dns.immutable.immutable class A(dns.rdata.Rdata): - """A record for Chaosnet""" # domain: the domain of the address diff --git a/dns/rdtypes/IN/A.py b/dns/rdtypes/IN/A.py index 713d5eea..e09d6110 100644 --- a/dns/rdtypes/IN/A.py +++ b/dns/rdtypes/IN/A.py @@ -24,7 +24,6 @@ import dns.tokenizer @dns.immutable.immutable class A(dns.rdata.Rdata): - """A record.""" __slots__ = ["address"] diff --git a/dns/rdtypes/IN/AAAA.py b/dns/rdtypes/IN/AAAA.py index f8237b44..0cd139e7 100644 --- a/dns/rdtypes/IN/AAAA.py +++ b/dns/rdtypes/IN/AAAA.py @@ -24,7 +24,6 @@ import dns.tokenizer @dns.immutable.immutable class AAAA(dns.rdata.Rdata): - """AAAA record.""" __slots__ = ["address"] diff --git a/dns/rdtypes/IN/APL.py b/dns/rdtypes/IN/APL.py index f1bb01db..44cb3fef 100644 --- a/dns/rdtypes/IN/APL.py +++ b/dns/rdtypes/IN/APL.py @@ -29,7 +29,6 @@ import dns.tokenizer @dns.immutable.immutable class APLItem: - """An APL list item.""" __slots__ = ["family", "negation", "address", "prefix"] @@ -80,7 +79,6 @@ class APLItem: @dns.immutable.immutable class APL(dns.rdata.Rdata): - """APL record.""" # see: RFC 3123 diff --git a/dns/rdtypes/IN/DHCID.py b/dns/rdtypes/IN/DHCID.py index 65f85897..723492fa 100644 --- a/dns/rdtypes/IN/DHCID.py +++ b/dns/rdtypes/IN/DHCID.py @@ -24,7 +24,6 @@ import dns.rdata @dns.immutable.immutable class DHCID(dns.rdata.Rdata): - """DHCID record""" # see: RFC 4701 diff --git a/dns/rdtypes/IN/IPSECKEY.py b/dns/rdtypes/IN/IPSECKEY.py index 8bb2bcb6..e3a66157 100644 --- a/dns/rdtypes/IN/IPSECKEY.py +++ b/dns/rdtypes/IN/IPSECKEY.py @@ -29,7 +29,6 @@ class Gateway(dns.rdtypes.util.Gateway): @dns.immutable.immutable class IPSECKEY(dns.rdata.Rdata): - """IPSECKEY record""" # see: RFC 4025 diff --git a/dns/rdtypes/IN/KX.py b/dns/rdtypes/IN/KX.py index a03d1d51..6073df47 100644 --- a/dns/rdtypes/IN/KX.py +++ b/dns/rdtypes/IN/KX.py @@ -21,5 +21,4 @@ import dns.rdtypes.mxbase @dns.immutable.immutable class KX(dns.rdtypes.mxbase.UncompressedDowncasingMX): - """KX record""" diff --git a/dns/rdtypes/IN/NAPTR.py b/dns/rdtypes/IN/NAPTR.py index 1f1f5a12..195d1cba 100644 --- a/dns/rdtypes/IN/NAPTR.py +++ b/dns/rdtypes/IN/NAPTR.py @@ -33,7 +33,6 @@ def _write_string(file, s): @dns.immutable.immutable class NAPTR(dns.rdata.Rdata): - """NAPTR record""" # see: RFC 3403 diff --git a/dns/rdtypes/IN/NSAP.py b/dns/rdtypes/IN/NSAP.py index be8581e6..a4854b3f 100644 --- a/dns/rdtypes/IN/NSAP.py +++ b/dns/rdtypes/IN/NSAP.py @@ -25,7 +25,6 @@ import dns.tokenizer @dns.immutable.immutable class NSAP(dns.rdata.Rdata): - """NSAP record.""" # see: RFC 1706 diff --git a/dns/rdtypes/IN/NSAP_PTR.py b/dns/rdtypes/IN/NSAP_PTR.py index 0a18fdce..ce1c6632 100644 --- a/dns/rdtypes/IN/NSAP_PTR.py +++ b/dns/rdtypes/IN/NSAP_PTR.py @@ -21,5 +21,4 @@ import dns.rdtypes.nsbase @dns.immutable.immutable class NSAP_PTR(dns.rdtypes.nsbase.UncompressedNS): - """NSAP-PTR record""" diff --git a/dns/rdtypes/IN/PX.py b/dns/rdtypes/IN/PX.py index 5c0aa81e..cdca1532 100644 --- a/dns/rdtypes/IN/PX.py +++ b/dns/rdtypes/IN/PX.py @@ -26,7 +26,6 @@ import dns.rdtypes.util @dns.immutable.immutable class PX(dns.rdata.Rdata): - """PX record.""" # see: RFC 2163 diff --git a/dns/rdtypes/IN/SRV.py b/dns/rdtypes/IN/SRV.py index 84c54007..5adef98f 100644 --- a/dns/rdtypes/IN/SRV.py +++ b/dns/rdtypes/IN/SRV.py @@ -26,7 +26,6 @@ import dns.rdtypes.util @dns.immutable.immutable class SRV(dns.rdata.Rdata): - """SRV record""" # see: RFC 2782 diff --git a/dns/rdtypes/IN/WKS.py b/dns/rdtypes/IN/WKS.py index 26d287a3..881a7849 100644 --- a/dns/rdtypes/IN/WKS.py +++ b/dns/rdtypes/IN/WKS.py @@ -33,7 +33,6 @@ except OSError: @dns.immutable.immutable class WKS(dns.rdata.Rdata): - """WKS record""" # see: RFC 1035 diff --git a/dns/rdtypes/dnskeybase.py b/dns/rdtypes/dnskeybase.py index 3bfcf860..db300f8b 100644 --- a/dns/rdtypes/dnskeybase.py +++ b/dns/rdtypes/dnskeybase.py @@ -36,7 +36,6 @@ class Flag(enum.IntFlag): @dns.immutable.immutable class DNSKEYBase(dns.rdata.Rdata): - """Base class for rdata that is like a DNSKEY record""" __slots__ = ["flags", "protocol", "algorithm", "key"] diff --git a/dns/rdtypes/dsbase.py b/dns/rdtypes/dsbase.py index 1ad0b7a5..cd21f026 100644 --- a/dns/rdtypes/dsbase.py +++ b/dns/rdtypes/dsbase.py @@ -26,7 +26,6 @@ import dns.rdatatype @dns.immutable.immutable class DSBase(dns.rdata.Rdata): - """Base class for rdata that is like a DS record""" __slots__ = ["key_tag", "algorithm", "digest_type", "digest"] diff --git a/dns/rdtypes/euibase.py b/dns/rdtypes/euibase.py index 4c4068b2..751087b4 100644 --- a/dns/rdtypes/euibase.py +++ b/dns/rdtypes/euibase.py @@ -22,7 +22,6 @@ import dns.rdata @dns.immutable.immutable class EUIBase(dns.rdata.Rdata): - """EUIxx record""" # see: rfc7043.txt diff --git a/dns/rdtypes/mxbase.py b/dns/rdtypes/mxbase.py index a6bae078..6d5e3d87 100644 --- a/dns/rdtypes/mxbase.py +++ b/dns/rdtypes/mxbase.py @@ -28,7 +28,6 @@ import dns.rdtypes.util @dns.immutable.immutable class MXBase(dns.rdata.Rdata): - """Base class for rdata that is like an MX record.""" __slots__ = ["preference", "exchange"] @@ -71,7 +70,6 @@ class MXBase(dns.rdata.Rdata): @dns.immutable.immutable class UncompressedMX(MXBase): - """Base class for rdata that is like an MX record, but whose name is not compressed when converted to DNS wire format, and whose digestable form is not downcased.""" @@ -82,7 +80,6 @@ class UncompressedMX(MXBase): @dns.immutable.immutable class UncompressedDowncasingMX(MXBase): - """Base class for rdata that is like an MX record, but whose name is not compressed when convert to DNS wire format.""" diff --git a/dns/rdtypes/nsbase.py b/dns/rdtypes/nsbase.py index 56d94235..904224f0 100644 --- a/dns/rdtypes/nsbase.py +++ b/dns/rdtypes/nsbase.py @@ -25,7 +25,6 @@ import dns.rdata @dns.immutable.immutable class NSBase(dns.rdata.Rdata): - """Base class for rdata that is like an NS record.""" __slots__ = ["target"] @@ -56,7 +55,6 @@ class NSBase(dns.rdata.Rdata): @dns.immutable.immutable class UncompressedNS(NSBase): - """Base class for rdata that is like an NS record, but whose name is not compressed when convert to DNS wire format, and whose digestable form is not downcased.""" diff --git a/dns/rdtypes/svcbbase.py b/dns/rdtypes/svcbbase.py index db9b0e21..05652413 100644 --- a/dns/rdtypes/svcbbase.py +++ b/dns/rdtypes/svcbbase.py @@ -427,7 +427,6 @@ def _validate_and_define(params, key, value): @dns.immutable.immutable class SVCBBase(dns.rdata.Rdata): - """Base class for SVCB-like records""" # see: draft-ietf-dnsop-svcb-https-11 diff --git a/dns/rdtypes/tlsabase.py b/dns/rdtypes/tlsabase.py index 4cdb7ab3..a059d2c4 100644 --- a/dns/rdtypes/tlsabase.py +++ b/dns/rdtypes/tlsabase.py @@ -25,7 +25,6 @@ import dns.rdatatype @dns.immutable.immutable class TLSABase(dns.rdata.Rdata): - """Base class for TLSA and SMIMEA records""" # see: RFC 6698 diff --git a/dns/rdtypes/txtbase.py b/dns/rdtypes/txtbase.py index d1817645..44d6df57 100644 --- a/dns/rdtypes/txtbase.py +++ b/dns/rdtypes/txtbase.py @@ -28,7 +28,6 @@ import dns.tokenizer @dns.immutable.immutable class TXTBase(dns.rdata.Rdata): - """Base class for rdata that is like a TXT record (see RFC 1035).""" __slots__ = ["strings"] diff --git a/dns/rrset.py b/dns/rrset.py index 29e5ba0d..6f39b108 100644 --- a/dns/rrset.py +++ b/dns/rrset.py @@ -26,7 +26,6 @@ import dns.renderer class RRset(dns.rdataset.Rdataset): - """A DNS RRset (named rdataset). RRset inherits from Rdataset, and RRsets can be treated as diff --git a/dns/set.py b/dns/set.py index fa50ed97..f0fb0d50 100644 --- a/dns/set.py +++ b/dns/set.py @@ -19,7 +19,6 @@ import itertools class Set: - """A simple set class. This class was originally used to deal with sets being missing in diff --git a/dns/tsig.py b/dns/tsig.py index 58760f5f..780852e8 100644 --- a/dns/tsig.py +++ b/dns/tsig.py @@ -29,47 +29,38 @@ import dns.rdataclass class BadTime(dns.exception.DNSException): - """The current time is not within the TSIG's validity time.""" class BadSignature(dns.exception.DNSException): - """The TSIG signature fails to verify.""" class BadKey(dns.exception.DNSException): - """The TSIG record owner name does not match the key.""" class BadAlgorithm(dns.exception.DNSException): - """The TSIG algorithm does not match the key.""" class PeerError(dns.exception.DNSException): - """Base class for all TSIG errors generated by the remote peer""" class PeerBadKey(PeerError): - """The peer didn't know the key we used""" class PeerBadSignature(PeerError): - """The peer didn't like the signature we sent""" class PeerBadTime(PeerError): - """The peer didn't like the time we sent""" class PeerBadTruncation(PeerError): - """The peer didn't like amount of truncation in the TSIG we sent""" diff --git a/dns/zone.py b/dns/zone.py index d860dbdc..844919e4 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -54,42 +54,34 @@ from dns.zonetypes import DigestHashAlgorithm, DigestScheme, _digest_hashers class BadZone(dns.exception.DNSException): - """The DNS zone is malformed.""" class NoSOA(BadZone): - """The DNS zone has no SOA RR at its origin.""" class NoNS(BadZone): - """The DNS zone has no NS RRset at its origin.""" class UnknownOrigin(BadZone): - """The DNS zone's origin is unknown.""" class UnsupportedDigestScheme(dns.exception.DNSException): - """The zone digest's scheme is unsupported.""" class UnsupportedDigestHashAlgorithm(dns.exception.DNSException): - """The zone digest's origin is unsupported.""" class NoDigest(dns.exception.DNSException): - """The DNS zone has no ZONEMD RRset at its origin.""" class DigestVerificationFailure(dns.exception.DNSException): - """The ZONEMD digest failed to verify.""" @@ -126,7 +118,6 @@ def _validate_name( class Zone(dns.transaction.TransactionManager): - """A DNS zone. A ``Zone`` is a mapping from names to nodes. The zone object may be diff --git a/dns/zonefile.py b/dns/zonefile.py index 27f04924..af064e73 100644 --- a/dns/zonefile.py +++ b/dns/zonefile.py @@ -86,7 +86,6 @@ def _upper_dollarize(s): class Reader: - """Read a DNS zone file into a transaction.""" def __init__(