mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove obsolete comment about latin-1 in normalize_encoding
(GH-8739)
This docstring has drifted since python2: ca079a3ea3/Lib/encodings/__init__.py (L68)
This commit is contained in:
parent
ce34410b8b
commit
ed2e9ab804
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ def normalize_encoding(encoding):
|
||||||
collapsed and replaced with a single underscore, e.g. ' -;#'
|
collapsed and replaced with a single underscore, e.g. ' -;#'
|
||||||
becomes '_'. Leading and trailing underscores are removed.
|
becomes '_'. Leading and trailing underscores are removed.
|
||||||
|
|
||||||
Note that encoding names should be ASCII only; if they do use
|
Note that encoding names should be ASCII only.
|
||||||
non-ASCII characters, these must be Latin-1 compatible.
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if isinstance(encoding, bytes):
|
if isinstance(encoding, bytes):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue