diff options
| author | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-16 21:04:21 -0500 |
| commit | ae3d0cc316b826b8325507d960ccf84da601c3b0 (patch) | |
| tree | 3485e2ca463c2131a0ffb1693bc60d569cc9d8b7 /mailman/rules/emergency.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Several important cleanups.
* Turn on absolute_import and unicode_literals everywhere, and deal with the
aftermath.
* Use 'except X as Y' everywhere.
* Make the module prologues much more consistent.
* Use '{}'.format() consistently, except for logger interface.
* Because of the problems with calling ** args with unicode keywords, hide
calls to Template.substitute() behind an API.
Diffstat (limited to 'mailman/rules/emergency.py')
| -rw-r--r-- | mailman/rules/emergency.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mailman/rules/emergency.py b/mailman/rules/emergency.py index f24acba8c..c2cee06c4 100644 --- a/mailman/rules/emergency.py +++ b/mailman/rules/emergency.py @@ -17,8 +17,12 @@ """The emergency hold rule.""" -__all__ = ['Emergency'] +from __future__ import absolute_import, unicode_literals + __metaclass__ = type +__all__ = [ + 'Emergency', + ] from zope.interface import implements @@ -33,10 +37,12 @@ class Emergency: implements(IRule) name = 'emergency' + description = _( """The mailing list is in emergency hold and this message was not pre-approved by the list administrator. """) + record = True def check(self, mlist, msg, msgdata): |
