]> 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:34:17 +0000 (12:34 +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 20925254f49826cf012e1bb6c76e0fd8555813dd..a4546450cd3d419e65ca08f87714a17e08921760 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 ba714bda2d71c678e19dcb35d0162d19cbdd8dbe..820376d74e45a0a48bb0dce2db2ab64d191f4507 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 f70a9a534f555003ccddc6195bfcbf2f03c27610..55c3fde0b161c50eaf30e7a3bc1961eae3d6ced2 100644 (file)
@@ -40,42 +40,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
 
 _escaped = {
     '"' : True,
index 5a68517d7e5a16d1b5a3dfb66f98f9172ce79d05..40fe8d1ae09055cc7b57129e80cfc8d43b31a64b 100644 (file)
@@ -40,7 +40,6 @@ _by_value = dict([(y, x) for x, y in _by_text.iteritems()])
 
 class UnknownOpcode(dns.exception.DNSException):
     """An DNS opcode is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into an opcode.
index 6eaf62d1e6aae9d1f31588d48e376f714d823b57..440c600478815e865b71799ecb52c4c7c440d075 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 cd43ab5e440c38fff1f4e6a59ae6bd2dedff6741..372d724fa12235e0f62a7212dc0ab8460f275917 100644 (file)
@@ -54,7 +54,6 @@ _by_value = dict([(y, x) for x, y in _by_text.iteritems()])
 
 class UnknownRcode(dns.exception.DNSException):
     """A DNS rcode is unknown."""
-    pass
 
 def from_text(text):
     """Convert text into an rcode.
index 96815836260fb8ed54a363a6f2c08c0f0be05ce6..06afa867741250b5bfa055bbf5c4797be40fc8a7 100644 (file)
@@ -67,7 +67,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 389205ce94657d1bea7b93fec0cfd90b286c09dc..9524979fff33259ac765a5274eb05c4bf40e952c 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 5d914ae72567b6dc7bce53e56e2361a692acbcf3..c774db730920dc340d72a908d81e4d431aaf0eb1 100644 (file)
@@ -181,7 +181,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 5c16052c0b6feb7bfad261085b79220cf8914ca1..7676a55df560035613545d37018468fcd91ad1a8 100644 (file)
@@ -24,7 +24,6 @@ import dns.rdatatype
 
 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 c2720fc158964a5f32a01147a833142736275efd..0e400229539bfc8d3fb08f60e6f81fda5b155b11 100644 (file)
@@ -45,11 +45,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
@@ -94,11 +92,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 96e82df80160c775e2212af6812fe20bcdf5f53b..f1faa72221b46979ebb3112e0790cdff3b6f8745 100644 (file)
@@ -43,7 +43,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 01ab5a2fa283bb9fc9094b74ca5cb4b20b17bc64..7c16a9b34f7cfcfa1ec591c2731c3664ce3e19aa 100644 (file)
@@ -26,31 +26,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 b7fc6dd3c978691c9e92a47c6c9be4afc7102a20..453bbb9c851b990673f7ed8ce57dd6a4af0d1ab4 100644 (file)
@@ -38,19 +38,15 @@ except ImportError:
 
 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.