From 666e7034a042a39bf3d2290742f1649deb46700e Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Sat, 3 Jul 2010 16:27:29 +0200 Subject: [PATCH] Simplify __import__ call in acl. --- radicale/acl/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radicale/acl/__init__.py b/radicale/acl/__init__.py index 2767970..349b1dd 100644 --- a/radicale/acl/__init__.py +++ b/radicale/acl/__init__.py @@ -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"))