]> granicus.if.org Git - python/commit
Oleg Broytmann's support for RFC 2231 encoded parameters, SF patch #549133
authorBarry Warsaw <barry@python.org>
Sat, 29 Jun 2002 05:56:15 +0000 (05:56 +0000)
committerBarry Warsaw <barry@python.org>
Sat, 29 Jun 2002 05:56:15 +0000 (05:56 +0000)
commit908dc4bea84e4c1d5c20c03160a202c0f69db49d
treea8a9e58b2c5b23a4d037614be94ed4a2a8d9fcb9
parent3fdc889e762fa81469550aec6f47c1797d01e18a
Oleg Broytmann's support for RFC 2231 encoded parameters, SF patch #549133

Specifically,

_formatparam(): Teach this about encoded `param' arguments, which are
a 3-tuple of items (charset, language, value).  language is ignored.

_unquotevalue(): Handle both 3-tuple RFC 2231 values and unencoded
values.

_get_params_preserve(): Decode the parameters before returning them.

get_params(), get_param(): Use _unquotevalue().

get_filename(), get_boundary(): Teach these about encoded (3-tuple)
parameters.
Lib/email/Message.py