If pylint disable statement is used on separate line, it disables the
check to the end of module. In that case real errors may be unnoticed.
Pylint disable statement can be used per block and per line
from ._compat import long, binary_type, text_type, unichr, maybe_decode
-# pylint: disable=sys-max-int
try:
- maxint = sys.maxint
+ maxint = sys.maxint # pylint: disable=sys-max-int
except AttributeError:
maxint = (1 << (8 * struct.calcsize("P"))) // 2 - 1
from dns._compat import xrange, text_type
# pylint: disable=deprecated-string-function
-
try:
b32_hex_to_normal = string.maketrans('0123456789ABCDEFGHIJKLMNOPQRSTUV',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')
b'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')
b32_normal_to_hex = bytes.maketrans(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567',
b'0123456789ABCDEFGHIJKLMNOPQRSTUV')
+# pylint: enable=deprecated-string-function
# hash algorithm constants
SHA1 = 1