1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Small pep8 related typo fixes

This commit is contained in:
Guillaume Ayoub 2011-07-26 09:02:21 +02:00
parent 8f488eb6bc
commit cdae6f04e9
5 changed files with 11 additions and 10 deletions

View file

@ -53,7 +53,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("htpasswd_encoding", "stock"))
sha1 = hashlib.sha1() # pylint: disable=E1101
sha1 = hashlib.sha1() # pylint: disable=E1101
sha1.update(password)
return sha1.digest() == base64.b64decode(hash_value)