Skip to content

Commit ed2e9ab

Browse files
asottilegpshead
authored andcommitted
Remove obsolete comment about latin-1 in normalize_encoding (GH-8739)
This docstring has drifted since python2: https://github.com/python/cpython/blob/ca079a3ea30098aff3197c559a0e32d42dda6d84/Lib/encodings/__init__.py#L68
1 parent ce34410 commit ed2e9ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/encodings/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def normalize_encoding(encoding):
4949
collapsed and replaced with a single underscore, e.g. ' -;#'
5050
becomes '_'. Leading and trailing underscores are removed.
5151
52-
Note that encoding names should be ASCII only; if they do use
53-
non-ASCII characters, these must be Latin-1 compatible.
52+
Note that encoding names should be ASCII only.
5453
5554
"""
5655
if isinstance(encoding, bytes):

0 commit comments

Comments
 (0)