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.)
This commit is contained in:
parent
456fe5d3ca
commit
27ae52362c
|
@ -75,7 +75,7 @@ def encode(in_file, out_file, name=None, mode=None):
|
||||||
out_file.write('begin %o %s\n' % ((mode & 0o777),name))
|
out_file.write('begin %o %s\n' % ((mode & 0o777),name))
|
||||||
data = in_file.read(45)
|
data = in_file.read(45)
|
||||||
while len(data) > 0:
|
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)
|
data = in_file.read(45)
|
||||||
out_file.write(' \nend\n')
|
out_file.write(' \nend\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue