MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _unquotevalue

Function _unquotevalue

tools/python-3.11.9-amd64/Lib/email/message.py:93–101  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

91
92
93def _unquotevalue(value):
94 # This is different than utils.collapse_rfc2231_value() because it doesn't
95 # try to convert the value to a unicode. Message.get_param() and
96 # Message.get_params() are both currently defined to return the tuple in
97 # the face of RFC 2231 parameters.
98 if isinstance(value, tuple):
99 return value[0], value[1], utils.unquote(value[2])
100 else:
101 return utils.unquote(value)
102
103
104def _decode_uu(encoded):

Callers 2

get_paramsMethod · 0.85
get_paramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected