Rename loader to load_plugin

This commit is contained in:
Unrud
2020-01-15 00:32:36 +01:00
parent a8a1fc470b
commit 0cd95f8a39
5 changed files with 6 additions and 5 deletions

View File

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