-# Copyright (C) 2003-2007, 2009, 2011 Nominum, Inc.
+# Copyright (C) 2003-2017 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
lint:
pylint dns tests examples/*.py
+
+lint3:
+ pylint3 dns tests examples/*.py
from ._compat import long, binary_type, text_type, unichr, maybe_decode
+# pylint: disable=sys-max-int
try:
maxint = sys.maxint
except AttributeError:
-# Copyright (C) 2004-2007, 2009-2011 Nominum, Inc.
+# Copyright (C) 2004-2017 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
import dns.rdatatype
from dns._compat import xrange, text_type
+# pylint: disable=deprecated-string-function
+
try:
b32_hex_to_normal = string.maketrans('0123456789ABCDEFGHIJKLMNOPQRSTUV',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')
-# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
+# Copyright (C) 2003-2017 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
@classmethod
def from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None):
+
+ # pylint complains about this on Python 2.7, not sure why...
+ # pylint: disable=invalid-str-codec
+
items = []
while 1:
if rdlen == 0:
python3
# It's worth looking at len-as-condition for optimization, but it's disabled
-# here as it is not a correctness thing.
+# here as it is not a correctness thing. Similarly eq-without-hash is
+# probably worth improving.
disable=
R,
wrong-import-order,
wrong-import-position,
len-as-condition,
+ eq-without-hash,
[REPORTS]
class NXDOMAINExceptionTestCase(unittest.TestCase):
- # pylint: disable=broad-except
+ # pylint: disable=broad-except,exception-message-attribute
def test_nxdomain_compatible(self):
n1 = dns.name.Name(('a', 'b', ''))