diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-04-09 21:53:09 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-04-09 21:53:09 +0200 |
commit | 03c3e35d42a2f9855fca4beb89e5cbbefe2d9c21 (patch) | |
tree | 6c3edc03a6edfbe04c6f1c7733f3a8882d1da8c8 /Lib/encodings | |
parent | merge heads (diff) | |
download | cpython-03c3e35d42a2f9855fca4beb89e5cbbefe2d9c21.tar.gz cpython-03c3e35d42a2f9855fca4beb89e5cbbefe2d9c21.tar.bz2 cpython-03c3e35d42a2f9855fca4beb89e5cbbefe2d9c21.zip |
Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings:
cp037, cp500 and iso8859_1 codecs
Diffstat (limited to 'Lib/encodings')
-rw-r--r-- | Lib/encodings/cp037.py | 1 | ||||
-rw-r--r-- | Lib/encodings/cp500.py | 1 | ||||
-rw-r--r-- | Lib/encodings/iso8859_1.py | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/Lib/encodings/cp037.py b/Lib/encodings/cp037.py index bfe2c1ed17a..4edd708f3d7 100644 --- a/Lib/encodings/cp037.py +++ b/Lib/encodings/cp037.py @@ -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 diff --git a/Lib/encodings/cp500.py b/Lib/encodings/cp500.py index a975be7b8d5..5f61535f82a 100644 --- a/Lib/encodings/cp500.py +++ b/Lib/encodings/cp500.py @@ -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 diff --git a/Lib/encodings/iso8859_1.py b/Lib/encodings/iso8859_1.py index d9cc516718a..8cfc01fe14e 100644 --- a/Lib/encodings/iso8859_1.py +++ b/Lib/encodings/iso8859_1.py @@ -301,7 +301,6 @@ decoding_table = ( '\xfd' # 0xFD -> LATIN SMALL LETTER Y WITH ACUTE '\xfe' # 0xFE -> LATIN SMALL LETTER THORN (Icelandic) '\xff' # 0xFF -> LATIN SMALL LETTER Y WITH DIAERESIS - '\ufffe' ## Widen to UCS2 for optimization ) ### Encoding table |