diff options
| author | Barry Warsaw | 2012-03-14 02:28:13 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-14 02:28:13 -0400 |
| commit | eb509dc0466f34f63ab6dcf159de2f9137cb3fdb (patch) | |
| tree | 2c6727277c034acc411cbccfcc0c50e14e53bd3c /src/mailman/rules | |
| parent | bcc42e2201c7172848185e5675a7b79e3d28aa0f (diff) | |
| download | mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.gz mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.zst mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.zip | |
Diffstat (limited to 'src/mailman/rules')
| -rw-r--r-- | src/mailman/rules/administrivia.py | 2 | ||||
| -rw-r--r-- | src/mailman/rules/moderation.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rules/administrivia.py b/src/mailman/rules/administrivia.py index 790c16c19..41c6edf30 100644 --- a/src/mailman/rules/administrivia.py +++ b/src/mailman/rules/administrivia.py @@ -81,7 +81,7 @@ class Administrivia: lineno = 0 for line in lines: line = line.strip() - if line == '': + if len(line) == 0: continue lineno += 1 if lineno > config.mailman.email_commands_max_lines: diff --git a/src/mailman/rules/moderation.py b/src/mailman/rules/moderation.py index bcec47cba..cb27d89d8 100644 --- a/src/mailman/rules/moderation.py +++ b/src/mailman/rules/moderation.py @@ -57,7 +57,7 @@ class MemberModeration: elif action is not None: # We must stringify the moderation action so that it can be # stored in the pending request table. - msgdata['moderation_action'] = action.enumname + msgdata['moderation_action'] = action.name msgdata['moderation_sender'] = sender return True # The sender is not a member so this rule does not match. @@ -98,7 +98,7 @@ class NonmemberModeration: elif action is not None: # We must stringify the moderation action so that it can be # stored in the pending request table. - msgdata['moderation_action'] = action.enumname + msgdata['moderation_action'] = action.name msgdata['moderation_sender'] = sender return True # The sender must be a member, so this rule does not match. |
