gh-83336: Add alias for consistency to utf-8-sig (#136530)

Closes #83336
This commit is contained in:
Stan Ulbrych 2025-09-24 09:38:57 +01:00 committed by GitHub
parent c4f21d7c7c
commit 30f849250b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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',

View file

@ -0,0 +1 @@
``utf8_sig`` is now aliased to :mod:`encodings.utf_8_sig`