def cleanup_list(l):
    'Fixes a list so that comma separated items are put as individual items.\n\n  So that "--reviewers joe@c,john@c --reviewers joa@c" results in\n  options.reviewers == sorted([\'joe@c\', \'john@c\', \'joa@c\']).\n  '
    items = sum((i.split(',') for i in l), [])
    stripped_items = (i.strip() for i in items)
    return sorted(filter(None, stripped_items))
Fixes a list so that comma separated items are put as individual items.

So that "--reviewers joe@c,john@c --reviewers joa@c" results in
options.reviewers == sorted(['joe@c', 'john@c', 'joa@c']).
def cleanup_list(l):
    'Fixes a list so that comma separated items are put as individual items.\n\n  So that "--reviewers joe@c,john@c --reviewers joa@c" results in\n  options.reviewers == sorted([\'joe@c\', \'john@c\', \'joa@c\']).\n  '
    items = sum((i.split(',') for i in l), [])
    stripped_items = (i.strip() for i in items)
    return sorted(filter(None, stripped_items))