def parse_mailmap(mailmap='.mailmap'):
    mapping = {}
    if os.path.exists(mailmap):
        fp = open(mailmap, 'r')
        for l in fp:
            l = l.strip()
            if not l.startswith('#') and l in ' ':
                canonical_email, alias = l.split(' ')
                mapping[alias] = canonical_email
    return mapping
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/utils.py/parse_mailmap/swapped operands of `in`