summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw1999-08-23 16:15:04 +0000
committerbwarsaw1999-08-23 16:15:04 +0000
commit3074223083e39cc46495267597f6f2f836006a04 (patch)
tree0f1ed2543c2057cba993e9c3682248f884f70bd9 /Mailman/Utils.py
parente281013e79ac0b9f990bd6677db2debf6bbadb87 (diff)
downloadmailman-3074223083e39cc46495267597f6f2f836006a04.tar.gz
mailman-3074223083e39cc46495267597f6f2f836006a04.tar.zst
mailman-3074223083e39cc46495267597f6f2f836006a04.zip
map_maillists(): formatting
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 6acb2680f..e24abefae 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -561,22 +561,25 @@ def map_maillists(func, names=None, unlock=None, verbose=0):
instantiated, CR when instantiation is complete, and result of
application as it shows."""
from MailList import MailList
- if names == None: names = list_names()
+ if names == None:
+ names = list_names()
got = []
for i in names:
- if verbose: print i,
+ if verbose:
+ print i,
l = MailList(i)
- if verbose: print
+ if verbose:
+ print
if unlock and l.Locked():
l.Unlock()
got.append(apply(func, (l,)))
- if verbose: print got[-1]
+ 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