[Python-checkins] python/dist/src/Lib/email Parser.py,1.11,1.12

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Fri, 19 Jul 2002 15:25:36 -0700


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

Modified Files:
	Parser.py 
Log Message:
Parser.__init__(): The consensus on the mimelib-devel list is that
non-strict parsing should be the default.  Make it so.


Index: Parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Parser.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Parser.py	18 Jul 2002 23:09:09 -0000	1.11
--- Parser.py	19 Jul 2002 22:25:34 -0000	1.12
***************
*** 17,21 ****
  
  class Parser:
!     def __init__(self, _class=Message.Message, strict=1):
          """Parser of RFC 2822 and MIME email messages.
  
--- 17,21 ----
  
  class Parser:
!     def __init__(self, _class=Message.Message, strict=0):
          """Parser of RFC 2822 and MIME email messages.
  
***************
*** 37,41 ****
          non-strict mode is used, the parser will try to make up for missing or
          erroneous boundaries and other peculiarities seen in the wild.
!         Defaults to strict parsing.
          """
          self._class = _class
--- 37,41 ----
          non-strict mode is used, the parser will try to make up for missing or
          erroneous boundaries and other peculiarities seen in the wild.
!         Default is non-strict parsing.
          """
          self._class = _class