diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-12-22 10:35:28 -0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-12-22 10:35:28 -0200 |
commit | af98534d2fa813465665fa67add271e41f229849 (patch) | |
tree | 955415f616a64b2a1e775086668d646967a2c715 /service/pixelated/support/functional.py | |
parent | 4b0cc88c96c547528dd31e37c1593eee251f250b (diff) |
Sometimes soledad adds a None recipient on a mail header, just making sure that that doesnt break the soledad sync
Diffstat (limited to 'service/pixelated/support/functional.py')
-rw-r--r-- | service/pixelated/support/functional.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/pixelated/support/functional.py b/service/pixelated/support/functional.py index 734eba0b..b496eb95 100644 --- a/service/pixelated/support/functional.py +++ b/service/pixelated/support/functional.py @@ -24,3 +24,7 @@ def unique(_list): seen = set() seen_add = seen.add return [x for x in _list if not (x in seen or seen_add(x))] + + +def compact(_list): + return [a for a in _list if a] |