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

Guido van Rossum guido@cnri.reston.va.us
Tue, 14 Dec 1999 17:18:40 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib

Modified Files:
	mailbox.py 
Log Message:
Only set msg.fp to None when there are no extra arguments; if there
are, we must keep the file around so we can print the body.



Index: mailbox.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/mailbox.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** mailbox.py	1999/03/24 16:20:45	1.16
--- mailbox.py	1999/12/14 22:18:37	1.17
***************
*** 256,260 ****
  			break
  		msgs.append(msg)
! 		msg.fp = None
  	if len(args) > 1:
  		num = string.atoi(args[1])
--- 256,261 ----
  			break
  		msgs.append(msg)
! 		if len(args) <= 1:
! 			msg.fp = None
  	if len(args) > 1:
  		num = string.atoi(args[1])