diff options
author | Jack Diederich <jackdied@gmail.com> | 2006-05-26 11:37:20 (GMT) |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2006-05-26 11:37:20 (GMT) |
commit | df676c5ffdbc1c7cfa11d759936bfddebb53067e (patch) | |
tree | 0f5f381c13a969dcac2b68327fffab707a9462c6 /Tools/unicode | |
parent | b8b3c8e276b7f0d2004bc5c7b7ca6d652c0b9327 (diff) | |
download | cpython-df676c5ffdbc1c7cfa11d759936bfddebb53067e.zip cpython-df676c5ffdbc1c7cfa11d759936bfddebb53067e.tar.gz cpython-df676c5ffdbc1c7cfa11d759936bfddebb53067e.tar.bz2 |
when generating python code prefer to generate valid python code
Diffstat (limited to 'Tools/unicode')
-rw-r--r-- | Tools/unicode/gencodec.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py index 7c7829b..0c55de6 100644 --- a/Tools/unicode/gencodec.py +++ b/Tools/unicode/gencodec.py @@ -318,15 +318,15 @@ class StreamReader(Codec,codecs.StreamReader): ### encodings module API def getregentry(): - return codecs.CodecInfo(( - name=%r, + return codecs.CodecInfo( Codec().encode, Codec().decode, + name=%r, streamwriter=StreamWriter, streamreader=StreamReader, incrementalencoder=IncrementalEncoder, incrementaldecoder=IncrementalDecoder, - )) + ) ''' % encodingname.replace('_', '-')) # Add decoding table or map (with preference to the table) |