diff options
author | Marc-André Lemburg <mal@egenix.com> | 2005-10-21 14:02:28 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2005-10-21 14:02:28 (GMT) |
commit | 7797be7b3b738689343dc6adaef29ee0a893874b (patch) | |
tree | de78c4c5cd92aaac3be5a079e771d509a43975ef /Lib/encodings/aliases.py | |
parent | 75c9e8392e76a2c6210ed96d68a38a3e7fcf97f3 (diff) | |
download | cpython-7797be7b3b738689343dc6adaef29ee0a893874b.zip cpython-7797be7b3b738689343dc6adaef29ee0a893874b.tar.gz cpython-7797be7b3b738689343dc6adaef29ee0a893874b.tar.bz2 |
Alias iso8859_1 to latin_1 which is the same encoding, but has
a much faster codec implementation.
Diffstat (limited to 'Lib/encodings/aliases.py')
-rw-r--r-- | Lib/encodings/aliases.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py index 7362e78..681f9e3 100644 --- a/Lib/encodings/aliases.py +++ b/Lib/encodings/aliases.py @@ -393,11 +393,18 @@ aliases = { 'cskoi8r' : 'koi8_r', # latin_1 codec + # + # Note that the latin_1 codec is implemented internally in C and a + # lot faster than the charmap codec iso8859_1 which uses the same + # encoding. This is why we discourage the use of the iso8859_1 + # codec and alias it to latin_1 instead. + # '8859' : 'latin_1', 'cp819' : 'latin_1', 'csisolatin1' : 'latin_1', 'ibm819' : 'latin_1', 'iso8859' : 'latin_1', + 'iso8859_1' : 'latin_1', 'iso_8859_1' : 'latin_1', 'iso_8859_1_1987' : 'latin_1', 'iso_ir_100' : 'latin_1', |