From 25d1692434bb9613101f623bee2b59d86036a84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 30 Sep 2000 16:52:45 +0000 Subject: Return after writing 7bit or 8bit encodings. Closes bug 115712 --- Lib/mimetools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/mimetools.py b/Lib/mimetools.py index 27996e0..da955af 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -141,7 +141,7 @@ def decode(input, output, encoding): import uu return uu.decode(input, output) if encoding in ('7bit', '8bit'): - output.write(input.read()) + return output.write(input.read()) if decodetab.has_key(encoding): pipethrough(input, decodetab[encoding], output) else: @@ -160,7 +160,7 @@ def encode(input, output, encoding): import uu return uu.encode(input, output) if encoding in ('7bit', '8bit'): - output.write(input.read()) + return output.write(input.read()) if encodetab.has_key(encoding): pipethrough(input, encodetab[encoding], output) else: -- cgit v0.12