From 16f41a2baa6339748c86390b3223302a4a3ff033 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 13 Nov 2020 12:38:03 +0000 Subject: [PATCH] Drop NBSP characters (#1389) --- httpx/_models.py | 2 +- httpx/_status_codes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))