diff options
author | Guido van Rossum <guido@python.org> | 2007-07-16 19:50:03 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-16 19:50:03 +0000 |
commit | 8183b5514c9116782155f113f958b3ba97bfbb2c (patch) | |
tree | dc47e93831b2198732680c12ca2351079e2f6628 /Lib/uu.py | |
parent | 6af03fa592978b359db6e7e649b543a0fc8c0cf0 (diff) | |
download | cpython-8183b5514c9116782155f113f958b3ba97bfbb2c.tar.gz |
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/uu.py')
-rwxr-xr-x | Lib/uu.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |