def _split_into_mimetype_and_priority(x):
if '<STR_LIT:;>' in x:<EOL><INDENT>content_type, priority = x.split('<STR_LIT:;>')<EOL>casted_priority = float(priority.split('<STR_LIT:=>')[<NUM_LIT:1>])<EOL><DEDENT>else:<EOL><INDENT>content_type, casted_priority = x, <NUM_LIT:1.0><EOL><DEDENT>content_type = content_type.lstrip().rstrip()  <EOL>return content_type, casted_priority<EOL>
Split an accept header item into mimetype and priority.

    >>> _split_into_mimetype_and_priority('text/*')
    ('text/*', 1.0)

    >>> _split_into_mimetype_and_priority('application/json;q=0.5')
    ('application/json', 0.5)