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

Thomas Wouters twouters@users.sourceforge.net
Wed, 11 Jul 2001 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'