[Python-checkins] bpo-35551: encodings update (GH-11446)

Cheryl Sabella webhook-mailer at python.org
Wed Jun 5 18:18:15 EDT 2019


https://github.com/python/cpython/commit/c4c15ed7a2c7c2a1983e88b89c244d121eb3e512
commit: c4c15ed7a2c7c2a1983e88b89c244d121eb3e512
branch: master
author: Ashwin Ramaswami <aramaswamis at gmail.com>
committer: Cheryl Sabella <cheryl.sabella at gmail.com>
date: 2019-06-05T18:18:06-04:00
summary:

bpo-35551: encodings update (GH-11446)

files:
A Misc/NEWS.d/next/Core and Builtins/2019-01-18-16-16-27.bpo-35551.oF5pbO.rst
M Doc/library/codecs.rst
M Lib/encodings/aliases.py

diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 2e9314e0fab7..5048621bf0ad 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1198,7 +1198,8 @@ particular, the following variants typically exist:
 +-----------------+--------------------------------+--------------------------------+
 | mac_iceland     | maciceland                     | Icelandic                      |
 +-----------------+--------------------------------+--------------------------------+
-| mac_latin2      | maclatin2, maccentraleurope    | Central and Eastern Europe     |
+| mac_latin2      | maclatin2, maccentraleurope,   | Central and Eastern Europe     |
+|                 | mac_centeuro                   |                                |
 +-----------------+--------------------------------+--------------------------------+
 | mac_roman       | macroman, macintosh            | Western Europe                 |
 +-----------------+--------------------------------+--------------------------------+
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 5ef40a3438b9..8b621add1b1b 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -448,6 +448,7 @@
 
     # mac_latin2 codec
     'maccentraleurope'   : 'mac_latin2',
+    'mac_centeuro'       : 'mac_latin2',
     'maclatin2'          : 'mac_latin2',
 
     # mac_roman codec
@@ -491,9 +492,6 @@
     'sjisx0213'          : 'shift_jisx0213',
     's_jisx0213'         : 'shift_jisx0213',
 
-    # tactis codec
-    'tis260'             : 'tactis',
-
     # tis_620 codec
     'tis620'             : 'tis_620',
     'tis_620_0'          : 'tis_620',
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-01-18-16-16-27.bpo-35551.oF5pbO.rst b/Misc/NEWS.d/next/Core and Builtins/2019-01-18-16-16-27.bpo-35551.oF5pbO.rst
new file mode 100644
index 000000000000..bd7946e6d947
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2019-01-18-16-16-27.bpo-35551.oF5pbO.rst	
@@ -0,0 +1,3 @@
+Updated encodings:
+- Removed the "tis260" encoding, which was an alias for the nonexistent "tactis" codec.
+- Added "mac_centeuro" as an alias for the mac_latin2 encoding.
\ No newline at end of file



More information about the Python-checkins mailing list