Return after writing 7bit or 8bit encodings. Closes bug 115712

This commit is contained in:
Martin v. Löwis 2000-09-30 16:52:45 +00:00
parent af484d5a0c
commit 25d1692434
1 changed files with 2 additions and 2 deletions

View File

@ -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: