mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Whitespace normalization.
This commit is contained in:
parent
d7e8a0dd37
commit
469cdad822
83 changed files with 5817 additions and 5828 deletions
|
@ -37,7 +37,7 @@ def uu_encode(input,errors='strict',filename='<data>',mode=0666):
|
|||
write(b2a_uu(chunk))
|
||||
chunk = read(45)
|
||||
write(' \nend\n')
|
||||
|
||||
|
||||
return (outfile.getvalue(), len(input))
|
||||
|
||||
def uu_decode(input,errors='strict'):
|
||||
|
@ -98,10 +98,10 @@ class Codec(codecs.Codec):
|
|||
return uu_encode(input,errors)
|
||||
def decode(self,input,errors='strict'):
|
||||
return uu_decode(input,errors)
|
||||
|
||||
|
||||
class StreamWriter(Codec,codecs.StreamWriter):
|
||||
pass
|
||||
|
||||
|
||||
class StreamReader(Codec,codecs.StreamReader):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue