diff options
| author | bwarsaw | 1999-03-25 23:17:44 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-03-25 23:17:44 +0000 |
| commit | b54b6253e2b9818c3a69c058240005b85c470575 (patch) | |
| tree | 1c4ba1489951db4f6a99fe9c8c403545eecf1171 /Mailman/Utils.py | |
| parent | 37e8e63d94985e952addd74fb2721c428a770289 (diff) | |
| download | mailman-b54b6253e2b9818c3a69c058240005b85c470575.tar.gz mailman-b54b6253e2b9818c3a69c058240005b85c470575.tar.zst mailman-b54b6253e2b9818c3a69c058240005b85c470575.zip | |
ParseAddrs(): string.strip() all returned addresses.
Diffstat (limited to 'Mailman/Utils.py')
| -rw-r--r-- | Mailman/Utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index a2e38b919..032b7d3f2 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -271,7 +271,7 @@ def ParseAddrs(addresses): Argument is a list of addresses, return value is a list of the parsed email addresses. The argument can also be a single string, in which case - the return value is a single string. + the return value is a single string. All addresses are string.strip()'d. """ single = 0 @@ -292,8 +292,8 @@ def ParseAddrs(addresses): continue parsed.append(a) if single: - return parsed[0] - return parsed + return string.strip(parsed[0]) + return map(string.strip, parsed) def GetPathPieces(path): |
