]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update comment
authorTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 11:28:27 +0000 (12:28 +0100)
committerTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 11:28:27 +0000 (12:28 +0100)
httpx/_utils.py

index eb1708a0ed56358f0f9905984760e0a8a808c726..f2c54b3ede9c1f9fa28634e6b49993da2d691185 100644 (file)
@@ -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