From: Georg Brandl Date: Fri, 24 Aug 2007 17:23:23 +0000 (+0000) Subject: Bug #1011: fix rfc822.Message.getheader docs. X-Git-Tag: v2.6a1~1441 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94bda3a586e1282dc311ab93b1642cee83b7e5e0;p=thirdparty%2FPython%2Fcpython.git Bug #1011: fix rfc822.Message.getheader docs. --- diff --git a/Doc/library/rfc822.rst b/Doc/library/rfc822.rst index 52df0130bf41..da9f536461a9 100644 --- a/Doc/library/rfc822.rst +++ b/Doc/library/rfc822.rst @@ -198,10 +198,12 @@ A :class:`Message` instance has the following methods: .. 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 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])