diff options
| author | J08nY | 2017-06-19 15:04:12 +0200 |
|---|---|---|
| committer | J08nY | 2017-06-19 23:42:34 +0200 |
| commit | fc0e59c5c33779a1674fe3ddfbcc72d131036c21 (patch) | |
| tree | 386d7ba9d1476fdb091eba0c619da8ac1abf4518 /src/mailman/utilities | |
| parent | fbae9955db33b1d271c5e91368ef5cb5bf363bae (diff) | |
| download | mailman-fc0e59c5c33779a1674fe3ddfbcc72d131036c21.tar.gz mailman-fc0e59c5c33779a1674fe3ddfbcc72d131036c21.tar.zst mailman-fc0e59c5c33779a1674fe3ddfbcc72d131036c21.zip | |
Diffstat (limited to 'src/mailman/utilities')
| -rw-r--r-- | src/mailman/utilities/plugins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/utilities/plugins.py b/src/mailman/utilities/plugins.py index 98a34fbca..3fb5e49bc 100644 --- a/src/mailman/utilities/plugins.py +++ b/src/mailman/utilities/plugins.py @@ -57,8 +57,8 @@ def add_pluggable_components(subpackage, interface, mapping): object's `.name` attribute, which is required. It is a fatal error if that key already exists in the mapping. - :param package: The subpackage path to search. - :type package: string + :param subpackage: The subpackage path to search. + :type subpackage: string :param interface: The interface that returned objects must conform to. Objects found must have a `.name` attribute containing a unique string. @@ -70,7 +70,7 @@ def add_pluggable_components(subpackage, interface, mapping): """ for component in find_pluggable_components(subpackage, interface): if component.name in mapping: - raise RuntimeError( + raise RuntimeError( # pragma: no cover 'Duplicate key "{}" found in {}; previously {}'.format( component.name, component, mapping[component.name])) mapping[component.name] = component |
