summaryrefslogtreecommitdiff
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorBarry Warsaw2007-06-18 14:53:34 -0400
committerBarry Warsaw2007-06-18 14:53:34 -0400
commitc7d4e4c593d3bb1356fc099581d6f3e3deb0c1d4 (patch)
tree9710629c44708561ada1849fcce2281cc849f81d /Mailman/Handlers
parent511a33778c4195c4abca7c58aa6917e6a77059b6 (diff)
downloadmailman-c7d4e4c593d3bb1356fc099581d6f3e3deb0c1d4.tar.gz
mailman-c7d4e4c593d3bb1356fc099581d6f3e3deb0c1d4.tar.zst
mailman-c7d4e4c593d3bb1356fc099581d6f3e3deb0c1d4.zip
Convert the AfterDelivery handler test to a doctest. Also, change the
MailingList.last_post_time column to a DateTime (i.e. Python datetime object).
Diffstat (limited to 'Mailman/Handlers')
-rw-r--r--Mailman/Handlers/AfterDelivery.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/AfterDelivery.py b/Mailman/Handlers/AfterDelivery.py
index 5f01c9d49..16caf5773 100644
--- a/Mailman/Handlers/AfterDelivery.py
+++ b/Mailman/Handlers/AfterDelivery.py
@@ -20,10 +20,10 @@
This module must appear after the delivery module in the message pipeline.
"""
-import time
+import datetime
def process(mlist, msg, msgdata):
- mlist.last_post_time = time.time()
+ mlist.last_post_time = datetime.datetime.now()
mlist.post_id += 1