summaryrefslogtreecommitdiff
path: root/Mailman/interfaces/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/interfaces/rules.py')
-rw-r--r--Mailman/interfaces/rules.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/Mailman/interfaces/rules.py b/Mailman/interfaces/rules.py
index 5549b8e6b..24e479f81 100644
--- a/Mailman/interfaces/rules.py
+++ b/Mailman/interfaces/rules.py
@@ -21,11 +21,6 @@ from zope.interface import Interface, Attribute
-class DuplicateRuleError(Exception):
- """A rule or rule name is added to a processor more than once."""
-
-
-
class IRule(Interface):
"""A basic rule."""
@@ -43,26 +38,3 @@ class IRule(Interface):
:param msg: The message object.
:param msgdata: The message metadata.
"""
-
-
-
-class IRuleSet(Interface):
- """A rule processor."""
-
- rules = Attribute('The set of all rules this processor knows about.')
-
- def __getitem__(rule_name):
- """Return the named rule.
-
- :param rule_name: The name of the rule.
- :return: The IRule given by this name.
- :raise: KeyError if no such rule is known by this processor.
- """
-
- def get(rule_name, default=None):
- """Return the name rule.
-
- :param rule_name: The name of the rule.
- :return: The IRule given by this name, or `default` if no such rule
- is known by this processor.
- """