Ver Fonte

Simplify __import__ call in acl.

Guillaume Ayoub há 15 anos atrás
pai
commit
666e7034a0
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      radicale/acl/__init__.py

+ 1 - 2
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"))