aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Pending.py
diff options
context:
space:
mode:
authorDavid Planella <david.planella@gmail.com>2009-01-29 00:22:52 +0100
committerDavid Planella <david.planella@gmail.com>2009-01-29 00:22:52 +0100
commit518b3843c0117f24b1b277a724169fb616604e4d (patch)
tree01ab5cbe392ff3a8e851dae1be4eb3a8cf8ed439 /Mailman/Pending.py
parent42fcf522d7818e9e1ee922d1a68824b0f6dcc83d (diff)
parentc0da6af58657b1fe5730d3dea0e78bc17dac490a (diff)
downloadmailman2-518b3843c0117f24b1b277a724169fb616604e4d.tar.gz
mailman2-518b3843c0117f24b1b277a724169fb616604e4d.tar.xz
mailman2-518b3843c0117f24b1b277a724169fb616604e4d.zip
Merged from upstream
Diffstat (limited to 'Mailman/Pending.py')
-rw-r--r--Mailman/Pending.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Pending.py b/Mailman/Pending.py
index 224565b5..e6372eda 100644
--- a/Mailman/Pending.py
+++ b/Mailman/Pending.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2004 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2008 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -17,13 +17,13 @@
"""Track pending actions which require confirmation."""
import os
-import sha
import time
import errno
import random
import cPickle
from Mailman import mm_cfg
+from Mailman.Utils import sha_new
# Types of pending records
SUBSCRIPTION = 'S'
@@ -72,7 +72,7 @@ class Pending:
while True:
now = time.time()
x = random.random() + now % 1.0 + time.clock() % 1.0
- cookie = sha.new(repr(x)).hexdigest()
+ cookie = sha_new(repr(x)).hexdigest()
# We'll never get a duplicate, but we'll be anal about checking
# anyway.
if not db.has_key(cookie):