mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:
cp037, cp500 and iso8859_1 codecs
This commit is contained in:
parent
0f344b6e05
commit
03c3e35d42
4 changed files with 26 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue