summaryrefslogtreecommitdiffstats
path: root/Lib/mimetools.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2000-09-30 16:52:45 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2000-09-30 16:52:45 (GMT)
commit25d1692434bb9613101f623bee2b59d86036a84e (patch)
tree34d09519388d79c7062e54d656749b4d1f0f5a4d /Lib/mimetools.py
parentaf484d5a0cee122f0355bcd33f8bb5c0b6d50657 (diff)
downloadcpython-25d1692434bb9613101f623bee2b59d86036a84e.zip
cpython-25d1692434bb9613101f623bee2b59d86036a84e.tar.gz
cpython-25d1692434bb9613101f623bee2b59d86036a84e.tar.bz2
Return after writing 7bit or 8bit encodings. Closes bug 115712
Diffstat (limited to 'Lib/mimetools.py')
-rw-r--r--Lib/mimetools.py4
1 files 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: