Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:

cp037, cp500 and iso8859_1 codecs
This commit is contained in:
Victor Stinner 2013-04-09 21:53:09 +02:00
parent 0f344b6e05
commit 03c3e35d42
4 changed files with 26 additions and 4 deletions

View file

@ -301,7 +301,6 @@ decoding_table = (
'\xd9' # 0xFD -> LATIN CAPITAL LETTER U WITH GRAVE
'\xda' # 0xFE -> LATIN CAPITAL LETTER U WITH ACUTE
'\x9f' # 0xFF -> CONTROL
'\ufffe' ## Widen to UCS2 for optimization
)
### Encoding table