diff options
| author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-04-13 03:51:11 (GMT) |
|---|---|---|
| committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-04-13 03:51:11 (GMT) |
| commit | c3ffc549e5d162eeabf4cd30c7774f7af0234dc0 (patch) | |
| tree | 6ead2300f7d757a7c8667fe2f0fa93bbcf5d63d1 | |
| parent | 248b2af33fec77a060f70b1cff14a428673f29c3 (diff) | |
| download | cpython-c3ffc549e5d162eeabf4cd30c7774f7af0234dc0.zip cpython-c3ffc549e5d162eeabf4cd30c7774f7af0234dc0.tar.gz cpython-c3ffc549e5d162eeabf4cd30c7774f7af0234dc0.tar.bz2 | |
Merged revisions 71554-71555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71554 | hirokazu.yamamoto | 2009-04-13 10:07:06 +0900 | 1 line
Fixed typo. (email.Utils => email.utils)
........
r71555 | hirokazu.yamamoto | 2009-04-13 10:21:56 +0900 | 1 line
Fixed another typos. (email.Utils => email.utils)
........
| -rw-r--r-- | Doc/library/email.message.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index f2a78e1..35a9f6a 100644 --- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -373,13 +373,13 @@ Here are the methods of the :class:`Message` class: If your application doesn't care whether the parameter was encoded as in :rfc:`2231`, you can collapse the parameter value by calling - :func:`email.Utils.collapse_rfc2231_value`, passing in the return value + :func:`email.utils.collapse_rfc2231_value`, passing in the return value from :meth:`get_param`. This will return a suitably decoded Unicode string whn the value is a tuple, or the original string unquoted if it isn't. For example:: rawparam = msg.get_param('foo') - param = email.Utils.collapse_rfc2231_value(rawparam) + param = email.utils.collapse_rfc2231_value(rawparam) In any case, the parameter value (either the returned string, or the ``VALUE`` item in the 3-tuple) is always unquoted, unless *unquote* is set @@ -445,7 +445,7 @@ Here are the methods of the :class:`Message` class: does not have a ``filename`` parameter, this method falls back to looking for the ``name`` parameter. If neither is found, or the header is missing, then *failobj* is returned. The returned string will always be - unquoted as per :meth:`Utils.unquote`. + unquoted as per :func:`email.utils.unquote`. .. method:: get_boundary([failobj]) @@ -453,7 +453,7 @@ Here are the methods of the :class:`Message` class: Return the value of the ``boundary`` parameter of the :mailheader:`Content-Type` header of the message, or *failobj* if either the header is missing, or has no ``boundary`` parameter. The returned - string will always be unquoted as per :meth:`Utils.unquote`. + string will always be unquoted as per :func:`email.utils.unquote`. .. method:: set_boundary(boundary) |
