summaryrefslogtreecommitdiff
path: root/src/mailman/core/workflows.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/core/workflows.py')
-rw-r--r--src/mailman/core/workflows.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/core/workflows.py b/src/mailman/core/workflows.py
index b16da7df9..4581956d2 100644
--- a/src/mailman/core/workflows.py
+++ b/src/mailman/core/workflows.py
@@ -19,14 +19,14 @@
from mailman.config import config
from mailman.interfaces.workflows import IWorkflow
-from mailman.utilities.modules import find_components
+from mailman.utilities.plugins import find_pluggable_components
from public import public
@public
def initialize():
"""Find and register all workflows in all plugins."""
- for workflow in find_components('mailman.workflows', IWorkflow):
+ for workflow in find_pluggable_components('workflows', IWorkflow):
assert workflow.name not in config.workflows, (
'Duplicate key "{}" found in {}: "{}"'.format(
workflow.name, config.workflows,