]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Use set instead of list
authorTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 10:19:52 +0000 (11:19 +0100)
committerTom Christie <tom@tomchristie.com>
Thu, 19 Oct 2023 10:19:52 +0000 (11:19 +0100)
httpx/_utils.py

index cc1cbecd9d383db42fe00ca6d320c11539ac839d..875dd29d16d0eb428d8d02380dccfe3b046ffdff 100644 (file)
@@ -27,7 +27,7 @@ _HTML5_FORM_ENCODING_RE = re.compile(
 
 # Text codecs as supported by Chromium, Oct. 2023.
 # https://chromium.googlesource.com/chromium/chromium/+/refs/heads/trunk/chrome/browser/character_encoding.cc#36
-SUPPORTED_CODECS = [
+SUPPORTED_CODECS = {
     "utf-8",
     "utf-16le",
     "iso-8859-1",
@@ -65,7 +65,7 @@ SUPPORTED_CODECS = [
     "iso-8859-10",
     "iso-8859-14",
     "iso-8859-16",
-]
+}
 
 
 def normalize_header_key(