Thomas Wouters  committed 6c501d8

Backport Tim's checkin 1.17:

SF patch #440144: Tests and minor bugfix for uu module

decode(): While writing tests for, 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.

  • Participants
  • Parent commits fbccf18
  • Branches 2.1

Comments (0)

Files changed (1)

             sys.stderr.write("Warning: %s\n" % str(v))
         s = in_file.readline()
-    if not str:
+    if not s:
         raise Error, 'Truncated input file'
 def test():