From 27ae52362c4c8576987f6a78586b4f9c145100b1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 16 Jul 2007 19:50:03 +0000 Subject: [PATCH] Fix test_uu.py by inserting an explicit conversion from bytes to str into uu.py. (This is *not* SF patch 1754339, which I rejected.) --- Lib/uu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/uu.py b/Lib/uu.py index ff1ffe44c7c..97ad9b6663a 100755 --- a/Lib/uu.py +++ b/Lib/uu.py @@ -75,7 +75,7 @@ def encode(in_file, out_file, name=None, mode=None): out_file.write('begin %o %s\n' % ((mode & 0o777),name)) data = in_file.read(45) while len(data) > 0: - out_file.write(binascii.b2a_uu(data)) + out_file.write(str(binascii.b2a_uu(data), "ascii")) data = in_file.read(45) out_file.write(' \nend\n')