Simplify __import__ call in acl.
This commit is contained in:
parent
0d16c1cdd6
commit
666e7034a0
@ -31,6 +31,5 @@ from radicale import config
|
|||||||
|
|
||||||
def load():
|
def load():
|
||||||
"""Load list of available ACL managers."""
|
"""Load list of available ACL managers."""
|
||||||
module = __import__("radicale.acl", globals(), locals(),
|
module = __import__("radicale.acl", fromlist=[config.get("acl", "type")])
|
||||||
[config.get("acl", "type")])
|
|
||||||
return getattr(module, config.get("acl", "type"))
|
return getattr(module, config.get("acl", "type"))
|
||||||
|
Loading…
Reference in New Issue
Block a user