Kaydet (Commit) 3f3330f3 authored tarafından R. David Murray's avatar R. David Murray

Fix documentation of email.Message.get_filename to match

the fix applied in Issue 7082.
üst 3bc5cb7e
...@@ -447,9 +447,10 @@ Here are the methods of the :class:`Message` class: ...@@ -447,9 +447,10 @@ Here are the methods of the :class:`Message` class:
Return the value of the ``filename`` parameter of the Return the value of the ``filename`` parameter of the
:mailheader:`Content-Disposition` header of the message. If the header :mailheader:`Content-Disposition` header of the message. If the header
does not have a ``filename`` parameter, this method falls back to looking does not have a ``filename`` parameter, this method falls back to looking
for the ``name`` parameter. If neither is found, or the header is for the ``name`` parameter on the :mailheader:`Content-Type` header. If
missing, then *failobj* is returned. The returned string will always be neither is found, or the header is missing, then *failobj* is returned.
unquoted as per :func:`email.utils.unquote`. The returned string will always be unquoted as per
:func:`email.utils.unquote`.
.. method:: get_boundary([failobj]) .. method:: get_boundary([failobj])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment