Either use it everywhere and fully cover package, or do not leave at all.
from pygost.gost3413 import unpad2
from pygost.utils import hexdec
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
KEYSIZE = 32
from pygost.gost3413 import pad1
from pygost.iface import PEP247
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
digest_size = 8
SEQ_MAC = (
from pygost.iface import PEP247
from pygost.utils import hexdec
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
BLOCKSIZE = 64
-# pylint: disable=bad-whitespace,bad-continuation
Pi = bytearray((
252, 238, 221, 17, 207, 110, 49, 22, 251, 196, 250,
218, 35, 197, 4, 77, 233, 119, 240, 219, 147, 46,
6, 14, 22, 30, 38, 46, 54, 62,
7, 15, 23, 31, 39, 47, 55, 63,
)
-# pylint: disable=bad-whitespace,bad-continuation
C = [hexdec("".join(s))[::-1] for s in (
(
from pygost.utils import hexdec
from pygost.utils import hexenc
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
DEFAULT_SBOX = "id-GostR3411-94-CryptoProParamSet"
from pygost.gost28147 import encrypt as gost28147_encrypt
from pygost.gost28147 import ns2block as gost28147_ns2block
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
LC = bytearray((
from pygost.utils import bytes2long
from pygost.utils import long2bytes
from pygost.utils import strxor
-from pygost.utils import xrange # pylint: disable=redefined-builtin
+from pygost.utils import xrange
def pbkdf2(hasher, password, salt, iterations, dklen):
from sys import version_info
-xrange = range if version_info[0] == 3 else xrange # pylint: disable=redefined-builtin
+xrange = range if version_info[0] == 3 else xrange
def strxor(a, b):