From: Tom Christie Date: Fri, 13 Nov 2020 12:38:03 +0000 (+0000) Subject: Drop NBSP characters (#1389) X-Git-Tag: 0.17.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f41a2baa6339748c86390b3223302a4a3ff033;p=thirdparty%2Fhttpx.git Drop NBSP characters (#1389) --- diff --git a/httpx/_models.py b/httpx/_models.py index 8450690a..5e68a4c8 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -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 diff --git a/httpx/_status_codes.py b/httpx/_status_codes.py index e6f66d7d..71cf5cee 100644 --- a/httpx/_status_codes.py +++ b/httpx/_status_codes.py @@ -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))