Skip to content

Commit d0e31c1

Browse files
Alias
1 parent 797abd1 commit d0e31c1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Doc/library/codecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ particular, the following variants typically exist:
13251325
+-----------------+--------------------------------+--------------------------------+
13261326
| utf_8 | U8, UTF, utf8, cp65001 | all languages |
13271327
+-----------------+--------------------------------+--------------------------------+
1328-
| utf_8_sig | | all languages |
1328+
| utf_8_sig | utf8-sig | all languages |
13291329
+-----------------+--------------------------------+--------------------------------+
13301330

13311331
.. versionchanged:: 3.4

Lib/encodings/aliases.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818
aliases = {
1919

20-
# Please keep this list sorted alphabetically by value !
20+
# Please keep this list sorted alphabetically by value!
2121

2222
# ascii codec
2323
'646' : 'ascii',
@@ -545,6 +545,9 @@
545545
'utf8_ucs4' : 'utf_8',
546546
'cp65001' : 'utf_8',
547547

548+
# utf_8_sig codec
549+
'utf8_sig' : 'utf_8_sig',
550+
548551
# uu_codec codec
549552
'uu' : 'uu_codec',
550553

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``utf8_sig`` is now aliased to :mod:`encodings.utf_8_sig`

0 commit comments

Comments
 (0)