mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Simplify __import__ call in acl.
This commit is contained in:
parent
0d16c1cdd6
commit
666e7034a0
1 changed files with 1 additions and 2 deletions
|
@ -31,6 +31,5 @@ from radicale import config
|
|||
|
||||
def load():
|
||||
"""Load list of available ACL managers."""
|
||||
module = __import__("radicale.acl", globals(), locals(),
|
||||
[config.get("acl", "type")])
|
||||
module = __import__("radicale.acl", fromlist=[config.get("acl", "type")])
|
||||
return getattr(module, config.get("acl", "type"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue