[3.11] gh-104924: Fix read()able in http.client log messages (gh-104926) (gh-104971)

gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
(cherry picked from commit 6c81d7572e)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
This commit is contained in:
Miss Islington (bot) 2023-05-26 05:02:13 -07:00 committed by GitHub
parent 13424746ce
commit f585ed19ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -984,7 +984,7 @@ class HTTPConnection:
print("send:", repr(data))
if hasattr(data, "read") :
if self.debuglevel > 0:
print("sendIng a read()able")
print("sending a readable")
encode = self._is_textIO(data)
if encode and self.debuglevel > 0:
print("encoding file using iso-8859-1")
@ -1017,7 +1017,7 @@ class HTTPConnection:
def _read_readable(self, readable):
if self.debuglevel > 0:
print("sendIng a read()able")
print("reading a readable")
encode = self._is_textIO(readable)
if encode and self.debuglevel > 0:
print("encoding file using iso-8859-1")