From: Björn Victor Date: Mon, 12 Nov 2018 16:45:17 +0000 (+0100) Subject: Make lint happier X-Git-Tag: v1.16.0~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70aead943bdf094b4f57a879b90081ff32a81f98;p=thirdparty%2Fdnspython.git Make lint happier --- diff --git a/dns/rdtypes/CH/A.py b/dns/rdtypes/CH/A.py index bbaec74e..ce39b751 100644 --- a/dns/rdtypes/CH/A.py +++ b/dns/rdtypes/CH/A.py @@ -13,7 +13,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -import dns.rdtypes.mxbase +import dns.rdtypes.mxbase.MXBase import struct class A(dns.rdtypes.mxbase.MXBase): @@ -27,7 +27,7 @@ class A(dns.rdtypes.mxbase.MXBase): __slots__ = ['domain', 'address'] def __init__(self, rdclass, rdtype, address, domain): - super(dns.rdtypes.mxbase.MXBase, self).__init__(rdclass, rdtype) + super(MXBase, self).__init__(rdclass, rdtype) self.domain = domain self.address = address diff --git a/dns/tokenizer.py b/dns/tokenizer.py index 993391e5..6833ffc5 100644 --- a/dns/tokenizer.py +++ b/dns/tokenizer.py @@ -432,7 +432,7 @@ class Tokenizer(object): # Helpers - def get_int(self,base=10): + def get_int(self, base=10): """Read the next token and interpret it as an integer. Raises dns.exception.SyntaxError if not an integer. @@ -445,7 +445,7 @@ class Tokenizer(object): raise dns.exception.SyntaxError('expecting an identifier') if not token.value.isdigit(): raise dns.exception.SyntaxError('expecting an integer') - return int(token.value,base) + return int(token.value, base) def get_uint8(self): """Read the next token and interpret it as an 8-bit unsigned @@ -462,7 +462,7 @@ class Tokenizer(object): '%d is not an unsigned 8-bit integer' % value) return value - def get_uint16(self,base=10): + def get_uint16(self, base=10): """Read the next token and interpret it as a 16-bit unsigned integer. @@ -473,7 +473,7 @@ class Tokenizer(object): value = self.get_int(base=base) if value < 0 or value > 65535: - if base==8: + if base == 8: raise dns.exception.SyntaxError( '%o is not an octal unsigned 16-bit integer' % value) else: