[Python-checkins] python/dist/src/Lib mailbox.py,1.42,1.43

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Sat Jul 24 21:54:46 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15693

Modified Files:
	mailbox.py 
Log Message:
add missing newlines to read/readline.
fixes bug #996359.


Index: mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mailbox.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** mailbox.py	7 Jul 2004 14:09:21 -0000	1.42
--- mailbox.py	24 Jul 2004 19:54:44 -0000	1.43
***************
*** 57,64 ****
  
      def read(self, length = None):
!         self._read(length, self.fp.read)
  
      def readline(self, length = None):
!         self._read(length, self.fp.readline)
  
      def readlines(self, sizehint = -1):
--- 57,64 ----
  
      def read(self, length = None):
!         return self._read(length, self.fp.read)
  
      def readline(self, length = None):
!         return self._read(length, self.fp.readline)
  
      def readlines(self, sizehint = -1):



More information about the Python-checkins mailing list