Remove pylint

This commit is contained in:
Guillaume Ayoub
2016-08-02 14:39:20 +02:00
parent 301bb552d7
commit 3e52f34309
5 changed files with 2 additions and 257 deletions

View File

@ -147,7 +147,7 @@ class Auth(BaseAuth):
"""Check if ``hash_value`` and ``password`` match, sha1 method."""
hash_value = hash_value.replace("{SHA}", "").encode("ascii")
password = password.encode(self.configuration.get("encoding", "stock"))
sha1 = hashlib.sha1() # pylint: disable=E1101
sha1 = hashlib.sha1()
sha1.update(password)
return sha1.digest() == base64.b64decode(hash_value)
@ -163,7 +163,7 @@ class Auth(BaseAuth):
password = password.encode(self.configuration.get("encoding", "stock"))
hash_value = hash_value[:20]
salt_value = hash_value[20:]
sha1 = hashlib.sha1() # pylint: disable=E1101
sha1 = hashlib.sha1()
sha1.update(password)
sha1.update(salt_value)
return sha1.digest() == hash_value