Kaydet (Commit) 94bda3a5 authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1011: fix rfc822.Message.getheader docs.

üst 966bb8c5
...@@ -198,10 +198,12 @@ A :class:`Message` instance has the following methods: ...@@ -198,10 +198,12 @@ A :class:`Message` instance has the following methods:
.. method:: Message.getheader(name[, default]) .. method:: Message.getheader(name[, default])
Like ``getrawheader(name)``, but strip leading and trailing whitespace. Return a single string consisting of the last header matching *name*,
but strip leading and trailing whitespace.
Internal whitespace is not stripped. The optional *default* argument can be Internal whitespace is not stripped. The optional *default* argument can be
used to specify a different default to be returned when there is no header used to specify a different default to be returned when there is no header
matching *name*. matching *name*; it defaults to ``None``.
This is the preferred way to get parsed headers.
.. method:: Message.get(name[, default]) .. method:: Message.get(name[, default])
......
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