summaryrefslogtreecommitdiff
path: root/Lib/encodings
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2018-09-10 20:54:37 -0400
committerGregory P. Smith <greg@krypto.org>2018-09-10 17:54:37 -0700
commited2e9ab804606019f167ef914bde43bc135c725f (patch)
tree1e2a258d09edee42eb7a204335fd92ead409158f /Lib/encodings
parentce34410b8b67f49d8275c05d51b3ead50cf97f48 (diff)
downloadcpython-git-ed2e9ab804606019f167ef914bde43bc135c725f.tar.gz
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
Diffstat (limited to 'Lib/encodings')
-rw-r--r--Lib/encodings/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index 025b7a8da3..d737d5339d 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -49,8 +49,7 @@ def normalize_encoding(encoding):
collapsed and replaced with a single underscore, e.g. ' -;#'
becomes '_'. Leading and trailing underscores are removed.
- Note that encoding names should be ASCII only; if they do use
- non-ASCII characters, these must be Latin-1 compatible.
+ Note that encoding names should be ASCII only.
"""
if isinstance(encoding, bytes):