]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop NBSP characters (#1389)
authorTom Christie <tom@tomchristie.com>
Fri, 13 Nov 2020 12:38:03 +0000 (12:38 +0000)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 12:38:03 +0000 (12:38 +0000)
httpx/_models.py
httpx/_status_codes.py

index 8450690a892a7c9083564bd6d434c12c2f7cb73c..5e68a4c84283be92ddf8cebe972c7b42b0240cc2 100644 (file)
@@ -1473,7 +1473,7 @@ class Cookies(MutableMapping):
         def info(self) -> email.message.Message:
             info = email.message.Message()
             for key, value in self.response.headers.multi_items():
-                #  Note that setting `info[key]` here is an "append" operation,
+                # Note that setting `info[key]` here is an "append" operation,
                 # not a "replace" operation.
                 # https://docs.python.org/3/library/email.compat32-message.html#email.message.Message.__setitem__
                 info[key] = value
index e6f66d7d5e7365b8a5b97f90e4a14460efa7be9a..71cf5cee98a2da132bbebf87d68f04ead463b8ad 100644 (file)
@@ -139,7 +139,7 @@ class codes(IntEnum):
     NETWORK_AUTHENTICATION_REQUIRED = 511, "Network Authentication Required"
 
 
-#  Include lower-case styles for `requests` compatibility.
+# Include lower-case styles for `requests` compatibility.
 for code in codes:
     setattr(codes, code._name_.lower(), int(code))