def parse_media_range(range):
    type, subtype, params = parse_mime_type(range)
    try:
        if not 0 <= float(params['q']) <= 1:
            raise ValueError
    except (KeyError, ValueError):
        params['q'] = '1'
    return type, subtype, params
Creates a new struct data blob.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/util/mimeparse.py/parse_media_range--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/struct.py/Struct.__init__