

def tags_to_new_gone(tags):
    'Split a list of tags into a new_set and a gone_set.'
    new_tags = set()
    gone_tags = set()
    for tag in tags:
        if (tag[0] == '-'):
            gone_tags.add(tag[1:])
        else:
            new_tags.add(tag)
    return (new_tags, gone_tags)

dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/__init__.py tags_to_new_gone/original