[Python-checkins] python/dist/src/Lib unittest.py,1.24,1.25

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Sep 12 22:58:02 EDT 2003


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

Modified Files:
	unittest.py 
Log Message:
SF bug #804115:  bad argument handling(unittest.py)



Index: unittest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** unittest.py	13 Jul 2003 15:18:12 -0000	1.24
--- unittest.py	13 Sep 2003 02:58:00 -0000	1.25
***************
*** 561,566 ****
          return getattr(self.stream,attr)
  
!     def writeln(self, *args):
!         if args: self.write(*args)
          self.write('\n') # text-mode streams translate to \r\n if needed
  
--- 561,566 ----
          return getattr(self.stream,attr)
  
!     def writeln(self, arg=None):
!         if arg: self.write(arg)
          self.write('\n') # text-mode streams translate to \r\n if needed
  





More information about the Python-checkins mailing list