diff options
| author | Björn Victor <bjorn@victor.se> | 2018-11-12 17:45:17 +0100 |
|---|---|---|
| committer | Björn Victor <bjorn@victor.se> | 2018-11-12 17:45:17 +0100 |
| commit | 70aead943bdf094b4f57a879b90081ff32a81f98 (patch) | |
| tree | 9a87bcaecf69cbcbfafd08a4b4d5cce624def8f9 | |
| parent | e78420b473d328dd05eda2831beff9e694d8d4a6 (diff) | |
| download | dnspython-70aead943bdf094b4f57a879b90081ff32a81f98.tar.gz | |
Make lint happier
| -rw-r--r-- | dns/rdtypes/CH/A.py | 4 | ||||
| -rw-r--r-- | dns/tokenizer.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/dns/rdtypes/CH/A.py b/dns/rdtypes/CH/A.py index bbaec74..ce39b75 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 993391e..6833ffc 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: |
