summaryrefslogtreecommitdiffstats
path: root/Tools/unicode
diff options
context:
space:
mode:
authorJack Diederich <jackdied@gmail.com>2006-05-26 11:37:20 (GMT)
committerJack Diederich <jackdied@gmail.com>2006-05-26 11:37:20 (GMT)
commitdf676c5ffdbc1c7cfa11d759936bfddebb53067e (patch)
tree0f5f381c13a969dcac2b68327fffab707a9462c6 /Tools/unicode
parentb8b3c8e276b7f0d2004bc5c7b7ca6d652c0b9327 (diff)
downloadcpython-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.py6
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)