]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Make lint happier
authorBjörn Victor <bjorn@victor.se>
Mon, 12 Nov 2018 16:45:17 +0000 (17:45 +0100)
committerBjörn Victor <bjorn@victor.se>
Mon, 12 Nov 2018 16:45:17 +0000 (17:45 +0100)
dns/rdtypes/CH/A.py
dns/tokenizer.py

index bbaec74e06bab66ef938bd693afdda0d777fd40a..ce39b751b8872d1a86867e0dce55b57a6748f86c 100644 (file)
@@ -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
 
index 993391e57c1aa188861c97303d6869b600292487..6833ffc5cef6f52e5d18de9b778731ba763128f5 100644 (file)
@@ -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: