]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove redundant 'pass' from class definitions.
authorPetr Spacek <pspacek@redhat.com>
Fri, 16 Jan 2015 12:10:46 +0000 (13:10 +0100)
committerPetr Spacek <pspacek@redhat.com>
Thu, 12 Feb 2015 11:38:31 +0000 (12:38 +0100)
26 files changed:
dns/dnssec.py
dns/exception.py
dns/message.py
dns/name.py
dns/opcode.py
dns/query.py
dns/rcode.py
dns/rdataclass.py
dns/rdataset.py
dns/rdatatype.py
dns/rdtypes/ANY/CNAME.py
dns/rdtypes/ANY/DLV.py
dns/rdtypes/ANY/DS.py
dns/rdtypes/ANY/MX.py
dns/rdtypes/ANY/NS.py
dns/rdtypes/ANY/PTR.py
dns/rdtypes/ANY/RRSIG.py
dns/rdtypes/ANY/RT.py
dns/rdtypes/ANY/SPF.py
dns/rdtypes/ANY/TXT.py
dns/rdtypes/IN/KX.py
dns/rdtypes/IN/NSAP_PTR.py
dns/resolver.py
dns/tokenizer.py
dns/tsig.py
dns/zone.py

index 52f9ba6fdf55c998981832f14d5f052f7805429c..85108329348401b7c21fb45972e0a8cfa2309c0c 100644 (file)
@@ -30,11 +30,9 @@ import dns.rdataclass
 
 class UnsupportedAlgorithm(dns.exception.DNSException):
     """The DNSSEC algorithm is not supported."""
-    pass
 
 class ValidationFailure(dns.exception.DNSException):
     """The DNSSEC signature is invalid."""
-    pass
 
 RSAMD5 = 1
 DH = 2
index e07b099d88b5bc3f7d819fabba9e77774293ee09..60b49129072fb9ea54623e6819a7e0e36f4a9a47 100644 (file)
@@ -26,20 +26,15 @@ class DNSException(Exception):
 
 class FormError(DNSException):
     """DNS message is malformed."""
-    pass
 
 class SyntaxError(DNSException):
     """Text input is malformed."""
-    pass
 
 class UnexpectedEnd(SyntaxError):
     """Text input ended unexpectedly."""
-    pass
 
 class TooBig(DNSException):
     """The DNS message is too big."""
-    pass
 
 class Timeout(DNSException):
     """The DNS operation timed out."""
-    pass
index d672a3a053f3daa4ec1a942dfe3211f1ec1abbbf..c1a853c73ab3d31e5472939ee8dc563fb42a5d18 100644 (file)
@@ -38,30 +38,24 @@ import dns.wiredata
 
 class ShortHeader(dns.exception.FormError):
     """The DNS packet passed to from_wire() is too short."""
-    pass
 
 class TrailingJunk(dns.exception.FormError):
     """The DNS packet passed to from_wire() has extra junk at the end of it."""
-    pass
 
 class UnknownHeaderField(dns.exception.DNSException):
     """The header field name was not recognized when converting from text
     into a message."""
-    pass
 
 class BadEDNS(dns.exception.FormError):
     """OPT record occured somewhere other than the start of
     the additional data section."""
-    pass
 
 class BadTSIG(dns.exception.FormError):
     """A TSIG record occured somewhere other than the end of
     the additional data section."""
-    pass
 
 class UnknownTSIGKey(dns.exception.DNSException):
     """A TSIG with an unknown key was received."""
-    pass
 
 class Message(object):
     """A DNS message.
index 8ffa674b4c2e979704df35b17c2e09214481ab1f..44af0985b4a0e2201da08c48fc3210d496146d8b 100644 (file)
@@ -39,42 +39,33 @@ NAMERELN_COMMONANCESTOR = 4
 
 class EmptyLabel(dns.exception.SyntaxError):
     """A DNS label is empty."""
-    pass
 
 class BadEscape(dns.exception.SyntaxError):
     """An escaped code in a text format of DNS name is invalid."""
-    pass
 
 class BadPointer(dns.exception.FormError):
     """A DNS compression pointer points forward instead of backward."""
-    pass
 
 class BadLabelType(dns.exception.FormError):
     """The label type in DNS name wire format is unknown."""
-    pass
 
 class NeedAbsoluteNameOrOrigin(dns.exception.DNSException):
     """An attempt was made to convert a non-absolute name to
     wire when there was also a non-absolute (or missing) origin."""
-    pass
 
 class NameTooLong(dns.exception.FormError):
     """A DNS name is > 255 octets long."""
-    pass
 
 class LabelTooLong(dns.exception.SyntaxError):
     """A DNS label is > 63 octets long."""
-    pass
 
 class AbsoluteConcatenation(dns.exception.DNSException):
     """An attempt was made to append anything other than the
     empty name to an absolute DNS name."""
-    pass
 
 class NoParent(dns.exception.DNSException):
     """An attempt was made to get the parent of the root name
     or the empty name."""
-    pass
 
 class LabelMixesUnicodeAndASCII(dns.exception.SyntaxError):
     """Raised if a label mixes Unicode characters and ASCII escapes."""
index 52e0ce647d7aaf5c4c7b9a5d612eb956e5c01629..7874d799fb05c02d0f38e925744d7a4d5abf6497 100644 (file)
@@ -40,7 +40,6 @@ _by_value = dict([(y, x) for x, y in _by_text.items()])
 
 class UnknownOpcode(dns.exception.DNSException):
     """An DNS opcode is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into an opcode.
index 8b0a2271ad1671c79a55d8bdf3d14c2d749d26b2..c41661533775fe7b55e6eb940461acff4ceae668 100644 (file)
@@ -33,11 +33,9 @@ import dns.rdatatype
 
 class UnexpectedSource(dns.exception.DNSException):
     """A DNS query response came from an unexpected address or port."""
-    pass
 
 class BadResponse(dns.exception.FormError):
     """A DNS query response does not respond to the question asked."""
-    pass
 
 def _compute_expiration(timeout):
     if timeout is None:
index 8b9f8bd65a4ba51b3b04ad303ee3240d05f79a75..d8b32cfde82409c13061094622ffa5dd73956cc2 100644 (file)
@@ -54,7 +54,6 @@ _by_value = dict([(y, x) for x, y in _by_text.items()])
 
 class UnknownRcode(dns.exception.DNSException):
     """A DNS rcode is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into an rcode.
index c5845a05084c25949380843b1088af7ed5f8f300..e197a81124a61a1bbc9797ce1b102ddb3a3f7646 100644 (file)
@@ -64,7 +64,6 @@ _unknown_class_pattern = re.compile('CLASS([0-9]+)$', re.I);
 
 class UnknownRdataclass(dns.exception.DNSException):
     """A DNS class is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into a DNS rdata class value.
index 7a9cc3759f00ac18051ee1230294e321d8050735..8d112e791ca436884d3ff1c96203879f8d3972ab 100644 (file)
@@ -31,11 +31,9 @@ SimpleSet = dns.set.Set
 class DifferingCovers(dns.exception.DNSException):
     """An attempt was made to add a DNS SIG/RRSIG whose covered type
     is not the same as that of the other rdatas in the rdataset."""
-    pass
 
 class IncompatibleTypes(dns.exception.DNSException):
     """An attempt was made to add DNS RR data of an incompatible type."""
-    pass
 
 class Rdataset(dns.set.Set):
     """A DNS rdataset.
index f2f5e9855562758928b88f28121bb4b76d11d8a0..ae6b6ec29749b3811b721883ae308ccc9786cc4f 100644 (file)
@@ -173,7 +173,6 @@ _unknown_type_pattern = re.compile('TYPE([0-9]+)$', re.I);
 
 class UnknownRdatatype(dns.exception.DNSException):
     """DNS resource record type is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into a DNS rdata type value.
index fb8e9be49ea01e67d426678dbf497bb6cb6fbf52..6c6ab35ccdbcf1562d48cdde1940820fb5e0a26a 100644 (file)
@@ -21,4 +21,3 @@ class CNAME(dns.rdtypes.nsbase.NSBase):
     Note: although CNAME is officially a singleton type, dnspython allows
     non-singleton CNAME rdatasets because such sets have been commonly
     used by BIND and other nameservers for load balancing."""
-    pass
index 8bd79793d11616b0d096b035d2305333d03a1d2e..2a360b97746c172693393905e68ecdd6d98f42c0 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.dsbase
 
 class DLV(dns.rdtypes.dsbase.DSBase):
     """DLV record"""
-    pass
index 56b6332de208b8e6dfe0eeea31cbe744919cdcf0..6c669cccfdd5c0482d0d0e9856dafe89c01914a5 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.dsbase
 
 class DS(dns.rdtypes.dsbase.DSBase):
     """DS record"""
-    pass
index 92f41532a76ef0d6989430640b9d40041d27c028..c407c11a44ad1d1e31d713c3956d8e5137af6fdc 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.mxbase
 
 class MX(dns.rdtypes.mxbase.MXBase):
     """MX record"""
-    pass
index 6b45d4d4b60d4bc6339ea97ac80242b9f5e060ad..c3d0234994ca515dffcbb990cd407f654da68085 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.nsbase
 
 class NS(dns.rdtypes.nsbase.NSBase):
     """NS record"""
-    pass
index 4a037537b6c0a6a2803b99f6e395c838e174a03d..963de63a1911db20e547412705882407c6ea7f2f 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.nsbase
 
 class PTR(dns.rdtypes.nsbase.NSBase):
     """PTR record"""
-    pass
index e9b625b91f6acf749b9bf59e71c97b50c01c8773..a55ef20d104036bd5355fcfeaa756b379909ee03 100644 (file)
@@ -26,7 +26,6 @@ import dns.util
 
 class BadSigTime(dns.exception.DNSException):
     """Time in DNS SIG or RRSIG resource record cannot be parsed."""
-    pass
 
 def sigtime_to_posixtime(what):
     if len(what) != 14:
index f9653fdb344a22b5eb6b292f07bccd0f8ef23a67..5ba9417bacb89f2dc8acaf35c3ea85022af1f237 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.mxbase
 
 class RT(dns.rdtypes.mxbase.UncompressedDowncasingMX):
     """RT record"""
-    pass
index 8860dd72bb428f6304a17fbd5cf5fda21c1392eb..1df95806c5933d8734e4fc5db8595ece8fb4655c 100644 (file)
@@ -19,4 +19,3 @@ class SPF(dns.rdtypes.txtbase.TXTBase):
     """SPF record
 
     @see: RFC 4408"""
-    pass
index 604fd0f4deb8b83fa86235692d0211231245ca72..f921b36961529ff26eb539395a50218dcf46f09e 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.txtbase
 
 class TXT(dns.rdtypes.txtbase.TXTBase):
     """TXT record"""
-    pass
index c7bd5bbe65b9df686a7a04a39e24a1abe438945f..a01bddd10d54c82c5fe07edf5d48d82cef589d11 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.mxbase
 
 class KX(dns.rdtypes.mxbase.UncompressedMX):
     """KX record"""
-    pass
index df5b989ac80bdd980fb6e92be98c4d4b6fb84405..122c5123a067f57e701f4bd14752028b058979d9 100644 (file)
@@ -17,4 +17,3 @@ import dns.rdtypes.nsbase
 
 class NSAP_PTR(dns.rdtypes.nsbase.UncompressedNS):
     """NSAP-PTR record"""
-    pass
index 788b7c57a12163551d9b6cacad644b2bd3485395..387bd500660923f5715c8777217b9138bdecbb83 100644 (file)
@@ -48,11 +48,9 @@ if sys.platform == 'win32':
 
 class NXDOMAIN(dns.exception.DNSException):
     """The DNS query name does not exist."""
-    pass
 
 class YXDOMAIN(dns.exception.DNSException):
     """The DNS query name is too long after DNAME substitution."""
-    pass
 
 # The definition of the Timeout exception has moved from here to the
 # dns.exception module.  We keep dns.resolver.Timeout defined for
@@ -97,11 +95,9 @@ class NoNameservers(dns.exception.DNSException):
 
 class NotAbsolute(dns.exception.DNSException):
     """An absolute domain name is required but a relative name was provided."""
-    pass
 
 class NoRootSOA(dns.exception.DNSException):
     """There is no SOA RR at the DNS root name. This should never happen!"""
-    pass
 
 class NoMetaqueries(dns.exception.DNSException):
     """DNS metaqueries are not allowed."""
index c21451002ddcede260780eda3b300171da010131..e042f67b82f7aab26657d8a916491be4f5883fcb 100644 (file)
@@ -35,7 +35,6 @@ DELIMITER = 6
 
 class UngetBufferFull(dns.exception.DNSException):
     """An attempt was made to unget a token when the unget buffer was full."""
-    pass
 
 class Token(object):
     """A DNS master file format token.
index 3de11c934fa2e3d37b56d1d742d92a48d0ab4006..478f3e49edde4f27338012ee784cdd798be41c85 100644 (file)
@@ -27,31 +27,24 @@ import dns.name
 
 class BadTime(dns.exception.DNSException):
     """The current time is not within the TSIG's validity time."""
-    pass
 
 class BadSignature(dns.exception.DNSException):
     """The TSIG signature fails to verify."""
-    pass
 
 class PeerError(dns.exception.DNSException):
     """Base class for all TSIG errors generated by the remote peer"""
-    pass
 
 class PeerBadKey(PeerError):
     """The peer didn't know the key we used"""
-    pass
 
 class PeerBadSignature(PeerError):
     """The peer didn't like the signature we sent"""
-    pass
 
 class PeerBadTime(PeerError):
     """The peer didn't like the time we sent"""
-    pass
 
 class PeerBadTruncation(PeerError):
     """The peer didn't like amount of truncation in the TSIG we sent"""
-    pass
 
 # TSIG Algorithms
 
index b12776450769186347358ff453c7ba81976c02cf..ce88510bd3400fafbc7cc3cdb6b1ae87a0d7f925 100644 (file)
@@ -35,19 +35,15 @@ import dns.grange
 
 class BadZone(dns.exception.DNSException):
     """The DNS zone is malformed."""
-    pass
 
 class NoSOA(BadZone):
     """The DNS zone has no SOA RR at its origin."""
-    pass
 
 class NoNS(BadZone):
     """The DNS zone has no NS RRset at its origin."""
-    pass
 
 class UnknownOrigin(BadZone):
     """The DNS zone's origin is unknown."""
-    pass
 
 class Zone(object):
     """A DNS zone.