mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-83336: Add alias for consistency to utf-8-sig (#136530)
Closes #83336
This commit is contained in:
parent
c4f21d7c7c
commit
30f849250b
3 changed files with 6 additions and 2 deletions
|
|
@ -1339,7 +1339,7 @@ particular, the following variants typically exist:
|
|||
+-----------------+--------------------------------+--------------------------------+
|
||||
| utf_8 | U8, UTF, utf8, cp65001 | all languages |
|
||||
+-----------------+--------------------------------+--------------------------------+
|
||||
| utf_8_sig | | all languages |
|
||||
| utf_8_sig | utf8-sig | all languages |
|
||||
+-----------------+--------------------------------+--------------------------------+
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
"""
|
||||
aliases = {
|
||||
|
||||
# Please keep this list sorted alphabetically by value !
|
||||
# Please keep this list sorted alphabetically by value!
|
||||
|
||||
# ascii codec
|
||||
'646' : 'ascii',
|
||||
|
|
@ -554,6 +554,9 @@
|
|||
'utf8_ucs4' : 'utf_8',
|
||||
'cp65001' : 'utf_8',
|
||||
|
||||
# utf_8_sig codec
|
||||
'utf8_sig' : 'utf_8_sig',
|
||||
|
||||
# uu_codec codec
|
||||
'uu' : 'uu_codec',
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
``utf8_sig`` is now aliased to :mod:`encodings.utf_8_sig`
|
||||
Loading…
Add table
Add a link
Reference in a new issue