From 605bec7b78e8b58f49afef7baa50cfccb79c48ee Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 11 Aug 2018 16:28:46 -0700 Subject: [PATCH] Remove obsolete comment about latin-1 in `normalize_encoding` This docstring has drifted since python2: https://github.com/python/cpython/blob/ca079a3ea30098aff3197c559a0e32d42dda6d84/Lib/encodings/__init__.py#L68 --- Lib/encodings/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index 025b7a8da3de5e..d737d5339dce0d 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):