示例#1
0
def _unquotevalue(value):
    # This is different than Utils.collapse_rfc2231_value() because it doesn't
    # try to convert the value to a unicode.  Message.get_param() and
    # Message.get_params() are both currently defined to return the tuple in
    # the face of RFC 2231 parameters.
    if isinstance(value, tuple):
        return value[0], value[1], Utils.unquote(value[2])
    else:
        return Utils.unquote(value)
示例#2
0
def _unquotevalue(value):
    # This is different than Utils.collapse_rfc2231_value() because it doesn't
    # try to convert the value to a unicode.  Message.get_param() and
    # Message.get_params() are both currently defined to return the tuple in
    # the face of RFC 2231 parameters.
    if isinstance(value, tuple):
        return value[0], value[1], Utils.unquote(value[2])
    else:
        return Utils.unquote(value)
def _unquotevalue(value):
    if isinstance(value, TupleType):
        return value[0], value[1], Utils.unquote(value[2])
    else:
        return Utils.unquote(value)
示例#4
0
def _unquotevalue(value):
    if isinstance(value, TupleType):
        return value[0], value[1], Utils.unquote(value[2])
    else:
        return Utils.unquote(value)
示例#5
0
def _unquotevalue(value):
    if isinstance(value, tuple):
        return (value[0], value[1], Utils.unquote(value[2]))
    else:
        return Utils.unquote(value)
示例#6
0
def _unquotevalue(value):
    if isinstance(value, tuple):
        return (value[0], value[1], Utils.unquote(value[2]))
    else:
        return Utils.unquote(value)