diff options
Diffstat (limited to 'Tools/unicode/gencodec.py')
-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 3cfef20..0aef207 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) |