mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-12 20:30:57 +00:00
Rename loader to load_plugin
This commit is contained in:
parent
a8a1fc470b
commit
0cd95f8a39
5 changed files with 6 additions and 5 deletions
|
@ -42,7 +42,8 @@ CACHE_VERSION = (";".join(pkg_resources.get_distribution(pkg).version
|
|||
|
||||
def load(configuration):
|
||||
"""Load the storage module chosen in configuration."""
|
||||
return utils.loader(INTERNAL_TYPES, "storage", "Storage", configuration)
|
||||
return utils.load_plugin(
|
||||
INTERNAL_TYPES, "storage", "Storage", configuration)
|
||||
|
||||
|
||||
class ComponentExistsError(ValueError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue