mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Whitespace normalization. Leaving tokenize_tests.py alone for now.
This commit is contained in:
parent
be4cbb1668
commit
d2bf3b7ca6
9 changed files with 41 additions and 44 deletions
|
@ -14,14 +14,14 @@ class Codec(codecs.Codec):
|
|||
def encode(self,input,errors='strict'):
|
||||
|
||||
return codecs.charmap_encode(input,errors,encoding_map)
|
||||
|
||||
|
||||
def decode(self,input,errors='strict'):
|
||||
|
||||
return codecs.charmap_decode(input,errors,decoding_map)
|
||||
|
||||
class StreamWriter(Codec,codecs.StreamWriter):
|
||||
pass
|
||||
|
||||
|
||||
class StreamReader(Codec,codecs.StreamReader):
|
||||
pass
|
||||
|
||||
|
@ -46,4 +46,3 @@ decoding_map.update({
|
|||
encoding_map = {}
|
||||
for k,v in decoding_map.items():
|
||||
encoding_map[v] = k
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue