mirror of https://github.com/python/cpython.git
Return after writing 7bit or 8bit encodings. Closes bug 115712
This commit is contained in:
parent
af484d5a0c
commit
25d1692434
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue