]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Alias iso8859_1 to latin_1 which is the same encoding, but has
authorMarc-André Lemburg <mal@egenix.com>
Fri, 21 Oct 2005 14:02:28 +0000 (14:02 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Fri, 21 Oct 2005 14:02:28 +0000 (14:02 +0000)
a much faster codec implementation.

Lib/encodings/aliases.py

index 7362e78840543c741cad1bef538725b5073c6808..681f9e356caf8ade37dafe0bae50b64c771e2e95 100644 (file)
@@ -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',