summaryrefslogtreecommitdiff
path: root/Lib/encodings/cp500.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-06-16 22:48:21 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2012-06-16 22:48:21 +0200
commitf2acb26651854054d0b053568af3a2172ba6b53e (patch)
tree869ac73d13e1bd4d9cc9371344b1c02032495c75 /Lib/encodings/cp500.py
parent90eec771926a678cfaf70dbcd967851fa046e25e (diff)
downloadcpython-f2acb26651854054d0b053568af3a2172ba6b53e.tar.gz
Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/encodings/cp500.py')
-rw-r--r--Lib/encodings/cp500.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/encodings/cp500.py b/Lib/encodings/cp500.py
index 5f61535f82..a975be7b8d 100644
--- a/Lib/encodings/cp500.py
+++ b/Lib/encodings/cp500.py
@@ -301,6 +301,7 @@ 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