[Python-checkins] CVS: python/dist/src/Lib mailbox.py,1.33,1.34

Barry Warsaw bwarsaw@users.sourceforge.net
Fri, 01 Mar 2002 14:39:16 -0800


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

Modified Files:
	mailbox.py 
Log Message:
Added PortableUnixMailbox to the __all__ variable, and in the __main__
section use this class instead of UnixMailbox as per the comments in
the latter's class.

Bug fix candidate for 2.2.1.


Index: mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mailbox.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** mailbox.py	13 Sep 2001 01:29:13 -0000	1.33
--- mailbox.py	1 Mar 2002 22:39:14 -0000	1.34
***************
*** 7,11 ****
  import os
  
! __all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox"]
  
  class _Mailbox:
--- 7,12 ----
  import os
  
! __all__ = ["UnixMailbox","MmdfMailbox","MHMailbox","Maildir","BabylMailbox",
!            "PortableUnixMailbox"]
  
  class _Mailbox:
***************
*** 92,95 ****
--- 93,97 ----
  
  
+ # Recommended to use PortableUnixMailbox instead!
  class UnixMailbox(_Mailbox):
      def _search_start(self):
***************
*** 283,287 ****
      else:
          fp = open(mbox, 'r')
!         mb = UnixMailbox(fp)
  
      msgs = []
--- 285,289 ----
      else:
          fp = open(mbox, 'r')
!         mb = PortableUnixMailbox(fp)
  
      msgs = []