commit | aaefac76ddac60bb332d28ec79702523b93530ee | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sat Jun 16 22:48:21 2012 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sat Jun 16 22:48:21 2012 +0200 |
tree | 747df780a77a130ac1197464d2e2830f5867ba7f | |
parent | c62bd13cb203f27bc11d36903554f20386b5b8c5 [diff] [blame] |
Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels. Patch by Serhiy Storchaka.
diff --git a/Lib/encodings/cp037.py b/Lib/encodings/cp037.py index 4edd708..bfe2c1e 100644 --- a/Lib/encodings/cp037.py +++ b/Lib/encodings/cp037.py
@@ -301,6 +301,7 @@ '\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