]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
__init__(): The docstring was incorrect regarding how header wrapping
authorBarry Warsaw <barry@python.org>
Wed, 19 Nov 2003 02:19:43 +0000 (02:19 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 19 Nov 2003 02:19:43 +0000 (02:19 +0000)
gets done when maxheaderlen <> 0.  The header really gets wrapped via
the email.Header.Header class, which has a more sophisticated
algorithm than just splitting on semi-colons.

Lib/email/Generator.py

index 3e578a2f745b6a57c9ff9a9e75c51ca4b251290e..56d44ea521765ba8abfce58b33bb50bd65448430 100644 (file)
@@ -70,11 +70,10 @@ class Generator:
 
         Optional maxheaderlen specifies the longest length for a non-continued
         header.  When a header line is longer (in characters, with tabs
-        expanded to 8 spaces), than maxheaderlen, the header will be broken on
-        semicolons and continued as per RFC 2822.  If no semicolon is found,
-        then the header is left alone.  Set to zero to disable wrapping
-        headers.  Default is 78, as recommended (but not required by RFC
-        2822.
+        expanded to 8 spaces) than maxheaderlen, the header will split as
+        defined in the Header class.  Set maxheaderlen to zero to disable
+        header wrapping.  The default is 78, as recommended (but not required)
+        by RFC 2822.
         """
         self._fp = outfp
         self._mangle_from_ = mangle_from_