[Python-checkins] python/dist/src/Lib/email Generator.py, 1.21, 1.21.8.1

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Tue Nov 18 21:19:45 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv31002

Modified Files:
      Tag: release23-maint
	Generator.py 
Log Message:
__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.


Index: Generator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Generator.py,v
retrieving revision 1.21
retrieving revision 1.21.8.1
diff -C2 -d -r1.21 -r1.21.8.1
*** Generator.py	24 Jun 2003 20:19:34 -0000	1.21
--- Generator.py	19 Nov 2003 02:19:43 -0000	1.21.8.1
***************
*** 71,79 ****
          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.
          """
          self._fp = outfp
--- 71,78 ----
          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 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





More information about the Python-checkins mailing list