[Python-checkins] python/dist/src/Lib/email Parser.py,1.19,1.20

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Wed, 05 Mar 2003 21:25:37 -0800


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

Modified Files:
	Parser.py 
Log Message:
Merge of the folding-reimpl-branch.  Specific changes,

Rename a constant.


Index: Parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Parser.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Parser.py	5 Nov 2002 21:44:06 -0000	1.19
--- Parser.py	6 Mar 2003 05:25:35 -0000	1.20
***************
*** 21,25 ****
      False = 0
  
! nlcre = re.compile('\r\n|\r|\n')
  
  
--- 21,25 ----
      False = 0
  
! NLCRE = re.compile('\r\n|\r|\n')
  
  
***************
*** 177,181 ****
              # Find out what kind of line endings we're using
              start += len(mo.group('sep')) + len(mo.group('ws'))
!             mo = nlcre.search(payload, start)
              if mo:
                  start += len(mo.group(0))
--- 177,181 ----
              # Find out what kind of line endings we're using
              start += len(mo.group('sep')) + len(mo.group('ws'))
!             mo = NLCRE.search(payload, start)
              if mo:
                  start += len(mo.group(0))