mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Document that get_content_charset() coerces its return value to lower
case.
This commit is contained in:
parent
c986e54733
commit
57ce1430b2
1 changed files with 3 additions and 2 deletions
|
@ -443,8 +443,9 @@ have been present in the original \mailheader{Content-Type} header.
|
|||
|
||||
\begin{methoddesc}[Message]{get_content_charset}{\optional{failobj}}
|
||||
Return the \code{charset} parameter of the \mailheader{Content-Type}
|
||||
header. If there is no \mailheader{Content-Type} header, or if that
|
||||
header has no \code{charset} parameter, \var{failobj} is returned.
|
||||
header, coerced to lower case. If there is no
|
||||
\mailheader{Content-Type} header, or if that header has no
|
||||
\code{charset} parameter, \var{failobj} is returned.
|
||||
|
||||
Note that this method differs from \method{get_charset()} which
|
||||
returns the \class{Charset} instance for the default encoding of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue