Skip to content

Commit 3aef48e

Browse files
authored
bpo-36778: Update cp65001 codec documentation (GH-13240)
Remove cp65001 from the codecs table, list it as an alias of utf_8 and add a versionchanged markup.
1 parent cf599f6 commit 3aef48e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/library/codecs.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,10 +1106,6 @@ particular, the following variants typically exist:
11061106
+-----------------+--------------------------------+--------------------------------+
11071107
| cp1258 | windows-1258 | Vietnamese |
11081108
+-----------------+--------------------------------+--------------------------------+
1109-
| cp65001 | | Alias to ``utf_8`` encoding |
1110-
| | | |
1111-
| | | .. versionadded:: 3.3 |
1112-
+-----------------+--------------------------------+--------------------------------+
11131109
| euc_jp | eucjp, ujis, u-jis | Japanese |
11141110
+-----------------+--------------------------------+--------------------------------+
11151111
| euc_jis_2004 | jisx0213, eucjis2004 | Japanese |
@@ -1234,7 +1230,7 @@ particular, the following variants typically exist:
12341230
+-----------------+--------------------------------+--------------------------------+
12351231
| utf_7 | U7, unicode-1-1-utf-7 | all languages |
12361232
+-----------------+--------------------------------+--------------------------------+
1237-
| utf_8 | U8, UTF, utf8 | all languages |
1233+
| utf_8 | U8, UTF, utf8, cp65001 | all languages |
12381234
+-----------------+--------------------------------+--------------------------------+
12391235
| utf_8_sig | | all languages |
12401236
+-----------------+--------------------------------+--------------------------------+
@@ -1245,6 +1241,9 @@ particular, the following variants typically exist:
12451241
The utf-32\* decoders no longer decode
12461242
byte sequences that correspond to surrogate code points.
12471243

1244+
.. versionchanged:: 3.8
1245+
``cp65001`` is now an alias to ``utf_8``.
1246+
12481247

12491248
Python Specific Encodings
12501249
-------------------------

0 commit comments

Comments
 (0)