summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-16 19:50:03 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-16 19:50:03 (GMT)
commit27ae52362c4c8576987f6a78586b4f9c145100b1 (patch)
treefac1c80682d88ef3f383dff669e7b36db9c8146d /Lib
parent456fe5d3cafc065b919fd4e8ba939c666f420dfa (diff)
downloadcpython-27ae52362c4c8576987f6a78586b4f9c145100b1.zip
cpython-27ae52362c4c8576987f6a78586b4f9c145100b1.tar.gz
cpython-27ae52362c4c8576987f6a78586b4f9c145100b1.tar.bz2
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.)
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/uu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/uu.py b/Lib/uu.py
index ff1ffe4..97ad9b6 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')