Explorar el Código

make flake8 happy

Peter Bieringer hace 2 años
padre
commit
d8ab8aa42c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      radicale/auth/htpasswd.py

+ 1 - 1
radicale/auth/htpasswd.py

@@ -88,7 +88,7 @@ class Auth(auth.BaseAuth):
         return hmac.compare_digest(hash_value.encode(), password.encode())
 
     def _bcrypt(self, bcrypt: Any, hash_value: str, password: str) -> bool:
-        return bcrypt.checkpw(password = password.encode('utf-8'), hashed_password = hash_value.encode())
+        return bcrypt.checkpw(password=password.encode('utf-8'), hashed_password=hash_value.encode())
 
     def _md5apr1(self, hash_value: str, password: str) -> bool:
         return apr_md5_crypt.verify(password, hash_value.strip())