Skip to content

Commit 32980fb

Browse files
authored
bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 (pythonGH-23096)
1 parent fe24088 commit 32980fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/whatsnew/3.9.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,12 @@ Changes in the Python API
11141114
compatible classes that don't inherit from those mentioned types.
11151115
(Contributed by Roger Aiudi in :issue:`34775`).
11161116

1117+
* :func:`codecs.lookup` now normalizes the encoding name the same way as
1118+
:func:`encodings.normalize_encoding`, except that :func:`codecs.lookup` also
1119+
converts the name to lower case. For example, ``"latex+latin1"`` encoding
1120+
name is now normalized to ``"latex_latin1"``.
1121+
(Contributed by Jordon Xu in :issue:`37751`.)
1122+
11171123

11181124
Changes in the C API
11191125
--------------------

0 commit comments

Comments
 (0)