[Python-checkins] r57395 - python/trunk/Doc/library/rfc822.rst
georg.brandl
python-checkins at python.org
Fri Aug 24 19:23:23 CEST 2007
Author: georg.brandl
Date: Fri Aug 24 19:23:23 2007
New Revision: 57395
Modified:
python/trunk/Doc/library/rfc822.rst
Log:
Bug #1011: fix rfc822.Message.getheader docs.
Modified: python/trunk/Doc/library/rfc822.rst
==============================================================================
--- python/trunk/Doc/library/rfc822.rst (original)
+++ python/trunk/Doc/library/rfc822.rst Fri Aug 24 19:23:23 2007
@@ -198,10 +198,12 @@
.. 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])
More information about the Python-checkins
mailing list