diff options
Diffstat (limited to 'Mailman/Utils.py')
| -rw-r--r-- | Mailman/Utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 8dc110f2e..4e358d927 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -338,6 +338,14 @@ def GetPossibleMatchingAddrs(name): return res +def List2Dict(list): + """List2Dict returns a dict keyed by the entries in the list + passed to it.""" + res = {} + for item in list: + res[item] = 1 + return res + def FindMatchingAddresses(name, dict, *dicts): """Given an email address, and any number of dictionaries keyed by |
