

def split(header):
    'Splits value part and parameters part,\n    e.g.\n         split("MULTIPART/MIXED;boundary=hal_9000")\n    becomes:\n         ["multipart/mixed", "boundary=hal_9000"]\n    '
    match = headerValue.match(header)
    if (not match):
        return (None, None)
    return (match.group(1).lower(), header[match.end():])

dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py split/original