diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-01-17 08:48:39 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-01-17 08:48:39 (GMT) |
commit | 70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7 (patch) | |
tree | cf47b67db3753288cfd9fa2adc45e7c5cd2f8741 /Tools/scripts/gencodec.py | |
parent | a88854059309667092000da55d4d5a5804267e9f (diff) | |
download | cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.zip cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.gz cpython-70c4378dbcfdcbeef6fb3aa348f32ed862fe8eb7.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Tools/scripts/gencodec.py')
-rw-r--r-- | Tools/scripts/gencodec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/gencodec.py b/Tools/scripts/gencodec.py index 39b42ff..bc70a32 100644 --- a/Tools/scripts/gencodec.py +++ b/Tools/scripts/gencodec.py @@ -180,14 +180,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 @@ -210,7 +210,7 @@ def getregentry(): else: l.append("decoding_map = {") splits = 0 - + mappings = map.items() mappings.sort() append = l.append @@ -290,7 +290,7 @@ def convertdir(dir,prefix='',comments=1): print '* conversion failed' def rewritepythondir(dir,prefix='',comments=1): - + mapnames = os.listdir(dir) for mapname in mapnames: if not mapname.endswith('.mapping'): |