From: Tom Christie Date: Thu, 19 Oct 2023 10:19:52 +0000 (+0100) Subject: Use set instead of list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8ef6e9c62ae9c88299cfc459fef343969999e7;p=thirdparty%2Fhttpx.git Use set instead of list --- diff --git a/httpx/_utils.py b/httpx/_utils.py index cc1cbecd..875dd29d 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -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(