summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarry Warsaw2011-08-17 19:22:45 -0400
committerBarry Warsaw2011-08-17 19:22:45 -0400
commitd5f143595e44497617bb0357e3c0213911619b35 (patch)
tree55bfc5655628ef2ab293771d6378b216ae42827d /src
parent6e7bfd50436c702aea5d392adcf2d63340ed3f69 (diff)
downloadmailman-d5f143595e44497617bb0357e3c0213911619b35.tar.gz
mailman-d5f143595e44497617bb0357e3c0213911619b35.tar.zst
mailman-d5f143595e44497617bb0357e3c0213911619b35.zip
Fix some typos, and improve the code.
Diffstat (limited to 'src')
-rw-r--r--src/mailman/app/events.py4
-rw-r--r--src/mailman/app/subscriptions.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/app/events.py b/src/mailman/app/events.py
index 4beac8212..9cdeba797 100644
--- a/src/mailman/app/events.py
+++ b/src/mailman/app/events.py
@@ -27,12 +27,12 @@ __all__ = [
from zope import event
-from mailman.app.subscriptions import handle_ListDeleteEvent
+from mailman.app import subscriptions
def initialize():
"""Initialize global event subscribers."""
event.subscribers.extend([
- handle_ListDeleteEvent,
+ subscriptions.handle_ListDeletedEvent,
])
diff --git a/src/mailman/app/subscriptions.py b/src/mailman/app/subscriptions.py
index 57609a006..f11494e75 100644
--- a/src/mailman/app/subscriptions.py
+++ b/src/mailman/app/subscriptions.py
@@ -182,7 +182,7 @@ class SubscriptionService:
-def handle_ListDeleteEvent(event):
+def handle_ListDeletedEvent(event):
"""Delete a mailing list's members when the list is deleted."""
if not isinstance(event, ListDeletedEvent):