

def concatenate(parts):
    ' Concatenates splitted parts of a parameter in a single parameter,\n    e.g.\n         URL*0="ftp://";\n         URL*1="cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar"\n\n    becomes:\n\n         URL="ftp://cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar"\n    '
    part = parts[0]
    if is_old_style(part):
        return encodedword.mime_to_unicode(get_value(part))
    else:
        return ''.join((decode_new_style(parts) for p in partition(parts)))

dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py concatenate/VarMisuse@51/174 `p`->`parts`