mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Pylint, remove fixed todos
This commit is contained in:
parent
039e868e5f
commit
d11d4cc8c1
5 changed files with 3 additions and 5 deletions
|
@ -49,7 +49,7 @@ def _sha1(hash_value, password):
|
|||
"""Check if ``hash_value`` and ``password`` match using sha1 method."""
|
||||
hash_value = hash_value.replace("{SHA}", "").encode("ascii")
|
||||
password = password.encode(config.get("encoding", "stock"))
|
||||
sha1 = hashlib.sha1()
|
||||
sha1 = hashlib.sha1() # pylint: disable=E1101
|
||||
sha1.update(password)
|
||||
return sha1.digest() == base64.b64decode(hash_value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue