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/core/rules.py | |
| parent | a3f7d07c62b2f7d6ac9d0b700883826c2838db60 (diff) | |
| download | mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.gz mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.tar.zst mailman-ae3d0cc316b826b8325507d960ccf84da601c3b0.zip | |
Diffstat (limited to 'mailman/core/rules.py')
| -rw-r--r-- | mailman/core/rules.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mailman/core/rules.py b/mailman/core/rules.py index e272846d3..83e24dfa2 100644 --- a/mailman/core/rules.py +++ b/mailman/core/rules.py @@ -17,6 +17,8 @@ """Various rule helpers""" +from __future__ import absolute_import, unicode_literals + __metaclass__ = type __all__ = [ 'initialize', @@ -39,5 +41,6 @@ def initialize(): rule = rule_class() verifyObject(IRule, rule) assert rule.name not in config.rules, ( - 'Duplicate rule "%s" found in %s' % (rule.name, rule_finder)) + 'Duplicate rule "{0}" found in {1}'.format( + rule.name, rule_finder)) config.rules[rule.name] = rule |
