summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-06-01 15:27:22 +0000
committerbwarsaw2000-06-01 15:27:22 +0000
commit9deac814fb00136596d392d38da7b53bc083291c (patch)
treeb863e42bf3457e19f12dd3f80655dd366db9f0bb
parentc6fea3117f76935330ee11920023d0ab859de671 (diff)
downloadmailman-9deac814fb00136596d392d38da7b53bc083291c.tar.gz
mailman-9deac814fb00136596d392d38da7b53bc083291c.tar.zst
mailman-9deac814fb00136596d392d38da7b53bc083291c.zip
-rw-r--r--Mailman/Utils.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index f3420493b..327583f68 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -414,38 +414,6 @@ def UnobscureEmail(addr):
-def map_maillists(func, names=None, unlock=None, verbose=0):
- """Apply function (of one argument) to all list objs in turn.
-
- Returns a list of the results.
-
- Optional arg 'names' specifies which lists, default all.
- Optional arg unlock says to unlock immediately after instantiation.
- Optional arg verbose says to print list name as it's about to be
- instantiated, CR when instantiation is complete, and result of
- application as it shows."""
- from Mailman import MailList
- if names == None:
- names = list_names()
- got = []
- for i in names:
- if verbose:
- print i,
- l = MailList.MailList(i)
- if verbose:
- print
- if unlock and l.Locked():
- l.Unlock()
- got.append(apply(func, (l,)))
- if verbose:
- print got[-1]
- if not unlock:
- l.Unlock()
- del l
- return got
-
-
-
def chunkify(members, chunksize=None):
"""
return a list of lists of members