summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-11-19 02:23:01 (GMT)
committerBarry Warsaw <barry@python.org>2003-11-19 02:23:01 (GMT)
commitb03136ad527579b93fa62cbf80d61511d41a839c (patch)
tree5ee1f638088f247c1f0a7ec9d8800e362fcf8e9c /Lib
parentf8d3bcc77eb72d354d14ae7c72d40aace3c42c27 (diff)
downloadcpython-b03136ad527579b93fa62cbf80d61511d41a839c.zip
cpython-b03136ad527579b93fa62cbf80d61511d41a839c.tar.gz
cpython-b03136ad527579b93fa62cbf80d61511d41a839c.tar.bz2
__init__(): The docstring was incorrect regarding how header wrapping
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/email/Generator.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/email/Generator.py b/Lib/email/Generator.py
index 3e578a2..56d44ea5 100644
--- a/Lib/email/Generator.py
+++ b/Lib/email/Generator.py
@@ -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_