mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Changes in anticipation of stricter str vs. bytes enforcement.
This commit is contained in:
parent
85825dc1ff
commit
39478e8528
15 changed files with 78 additions and 76 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue