

def decode(header):
    "Accepts parameterized header value (encoded in accordance to\n     rfc2231 (new style) or rfc1342 (old style)\n     and returns tuple:\n         value, {'key': u'val'}\n     returns None in case of any failure\n    "
    (value, rest) = split(encodedword.unfold(rest))
    if (value is None):
        return (None, {
            
        })
    elif value:
        return (value, decode_parameters(rest))

dataset/ETHPy150Open mailgun/flanker/flanker/mime/message/headers/parametrized.py decode/VarMisuse@24/112 `header`->`rest`