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

Thomas Wouters twouters@users.sourceforge.net
2001年7月11日 04:38:22 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32088/Lib
Modified Files:
 Tag: release21-maint
	uu.py 
Log Message:
Backport Tim's checkin 1.17:
SF patch #440144: Tests and minor bugfix for uu module
decode(): While writing tests for uu.py, Nick Mathewson discovered
that the 'Truncated input file' exception could never get raised,
because its "if not str:" test was actually testing the builtin
function "str", not the local string vrbl "s" as intended.
Index: uu.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/uu.py,v
retrieving revision 1.16
retrieving revision 1.16.4.1
diff -C2 -r1.16 -r1.16.4.1
*** uu.py	2001年03月01日 04:27:19	1.16
--- uu.py	2001年07月11日 11:38:20	1.16.4.1
***************
*** 136,140 ****
 out_file.write(data)
 s = in_file.readline()
! if not str:
 raise Error, 'Truncated input file'
 
--- 136,140 ----
 out_file.write(data)
 s = in_file.readline()
! if not s:
 raise Error, 'Truncated input file'
 

AltStyle によって変換されたページ (->オリジナル) /