1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-12 20:30:57 +00:00

fixes suggested by tox

This commit is contained in:
Peter Bieringer 2024-12-31 18:26:43 +01:00
parent c00ab76c83
commit c1be04abd1
2 changed files with 11 additions and 10 deletions

View file

@ -30,8 +30,8 @@ Take a look at the class ``BaseAuth`` if you want to implement your own.
"""
import hashlib
import time
import threading
import time
from typing import Sequence, Set, Tuple, Union, final
from radicale import config, types, utils
@ -89,7 +89,7 @@ class BaseAuth:
# cache_successful_logins
self._cache_logins = configuration.get("auth", "cache_logins")
self._type = configuration.get("auth", "type")
if (self._type in [ "dovecot", "ldap", "htpasswd" ]) or (self._cache_logins is False):
if (self._type in ["dovecot", "ldap", "htpasswd"]) or (self._cache_logins is False):
logger.info("auth.cache_logins: %s", self._cache_logins)
else:
logger.info("auth.cache_logins: %s (but not required for type '%s' and disabled therefore)", self._cache_logins, self._type)