diff options
author | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-27 17:23:59 +0000 |
commit | 39478e852827a4ca6955151bf004c7a15099a4b1 (patch) | |
tree | 05e52988c7904b7c7dad9427411bece5f9c45fcb /Lib/mimetools.py | |
parent | 85825dc1ff5cc21c5f3f453b30b825a7200609cb (diff) | |
download | cpython-git-39478e852827a4ca6955151bf004c7a15099a4b1.tar.gz |
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/mimetools.py')
-rw-r--r-- | Lib/mimetools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 45d9d32f6a..0553989cb4 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -158,7 +158,7 @@ def decode(input, output, encoding): import uu return uu.decode(input, output) if encoding in ('7bit', '8bit'): - return output.write(input.read().decode("Latin-1")) + return output.write(input.read()) if encoding in decodetab: pipethrough(input, decodetab[encoding], output) else: |