Simplify __import__ call in acl.

This commit is contained in:
Guillaume Ayoub 2010-07-03 16:27:29 +02:00
parent 0d16c1cdd6
commit 666e7034a0

View File

@ -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"))