From 91a11cf8c28ff541bfd00ce9dca08fffa3e56688 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 19 Oct 2023 12:28:27 +0100 Subject: [PATCH] Update comment --- httpx/_utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/httpx/_utils.py b/httpx/_utils.py index eb1708a0..f2c54b3e 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -28,10 +28,11 @@ _HTML5_FORM_ENCODING_RE = re.compile( # For our supported text codecs, we start with the text codecs as supported by Chromium, Oct. 2023. # https://chromium.googlesource.com/chromium/chromium/+/refs/heads/trunk/chrome/browser/character_encoding.cc#36 # -# Then limit those to any which documented as included by cpython, -# which drops "windows-874", "iso-8859-8-i". +# Then limit them to only includec codecs which are documented as included by cpython. +# https://docs.python.org/3/library/codecs.html#standard-encodings # -# Then make sure we're referencing them with the canonical name as used by the Python codecs. +# We're referencing them with the canonical name as used by the Python codecs. +# The alias given in the chromium source is included as a comment for comparison. SUPPORTED_CODECS = { "big5", # big5 "big5hkscs", # big5-hkscs -- 2.47.3