diff options
author | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 (GMT) |
commit | 39478e852827a4ca6955151bf004c7a15099a4b1 (patch) | |
tree | 05e52988c7904b7c7dad9427411bece5f9c45fcb /Lib/uu.py | |
parent | 85825dc1ff5cc21c5f3f453b30b825a7200609cb (diff) | |
download | cpython-39478e852827a4ca6955151bf004c7a15099a4b1.zip cpython-39478e852827a4ca6955151bf004c7a15099a4b1.tar.gz cpython-39478e852827a4ca6955151bf004c7a15099a4b1.tar.bz2 |
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/uu.py')
-rwxr-xr-x | Lib/uu.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -72,12 +72,12 @@ def encode(in_file, out_file, name=None, mode=None): # # Write the data # - out_file.write('begin %o %s\n' % ((mode & 0o777),name)) + out_file.write(('begin %o %s\n' % ((mode & 0o777), name)).encode("ascii")) data = in_file.read(45) while len(data) > 0: - out_file.write(str(binascii.b2a_uu(data), "ascii")) + out_file.write(binascii.b2a_uu(data)) data = in_file.read(45) - out_file.write(' \nend\n') + out_file.write(b' \nend\n') def decode(in_file, out_file=None, mode=None, quiet=0): |