[Python-checkins] CVS: python/dist/src/Lib uu.py,1.16,1.17
Tim Peters
tim_one@users.sourceforge.net
Tue, 10 Jul 2001 21:08:51 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv23108/python/dist/src/lib
Modified Files:
uu.py
Log Message:
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.
Bugfix candidate.
Index: uu.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/uu.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** uu.py 2001/03/01 04:27:19 1.16
--- uu.py 2001/07/11 04:08:49 1.17
***************
*** 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'