]> Cypherpunks.ru repositories - pygost.git/commitdiff
Remove pylint comments
authorSergey Matveev <stargrave@stargrave.org>
Mon, 13 Apr 2020 08:47:58 +0000 (11:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 13 Apr 2020 08:47:59 +0000 (11:47 +0300)
Either use it everywhere and fully cover package, or do not leave at all.

pygost/gost28147.py
pygost/gost28147_mac.py
pygost/gost34112012.py
pygost/gost341194.py
pygost/gost3412.py
pygost/pbkdf2.py
pygost/utils.py

index 9cb438e012cf11227ad87352e2c679b5236b5d63..01368f8b3e26475935e507821f999aac211a38fd 100644 (file)
@@ -28,7 +28,7 @@ from pygost.gost3413 import pad_size
 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
index 524b694633f474fb7fe941f39aaab0883c3b9a87..64712c6da5090e5d9e9cf86e9c26a82fcec92459 100644 (file)
@@ -29,7 +29,7 @@ from pygost.gost28147 import xcrypt
 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 = (
index c5caa2cc58b134e764f0ce2930ffc60401f03285..df4777fce69efd277ad942ef9a7b645595019ceb 100644 (file)
@@ -26,11 +26,10 @@ from struct import unpack
 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,
@@ -87,7 +86,6 @@ Tau = (
     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 (
     (
index a6a65efbfc9b51784d3217605ffa39bdff2c73f0..6d58efd666de769c9358ff66b2bf5f0175681d23 100644 (file)
@@ -33,7 +33,7 @@ from pygost.pbkdf2 import pbkdf2 as pbkdf2_base
 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"
index 047d460dbf05d4e93a09d56977cc361f303d931f..450cc7af80495d2eb5f23a101fce695569bc8444 100644 (file)
@@ -23,7 +23,7 @@ from pygost.gost28147 import decrypt as gost28147_decrypt
 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((
index 33df6fec445b2b2c11ad2ddb67a8eb5f2bdad11d..d1e07a69a39ff85b8e5a759b38bd22f8974a63fb 100644 (file)
@@ -9,7 +9,7 @@ PyGOST does not register itself in hashlib anyway, so use it instead.
 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):
index 596abc21170f522b90ffea7d805402b349c9bdef..0ec91fc56fe980639b88e91743d582f14759750b 100644 (file)
@@ -19,7 +19,7 @@ from codecs import getencoder
 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):