MCPcopy Index your code
hub / github.com/python/cpython / _unquotevalue

Function _unquotevalue

Lib/email/message.py:99–107  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers 2

get_paramsMethod · 0.85
get_paramMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…