summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2023-05-26 11:39:51 (GMT)
committerGitHub <noreply@github.com>2023-05-26 11:39:51 (GMT)
commit6c81d7572edbe3a5800b1128e55a2dcef03cc13c (patch)
tree1c0a46b30299e37986e1b31bcf7c93ee0665e300 /Lib/http
parent7fc542c88dc8a09d71006a6240943407b83229d0 (diff)
downloadcpython-6c81d7572edbe3a5800b1128e55a2dcef03cc13c.zip
cpython-6c81d7572edbe3a5800b1128e55a2dcef03cc13c.tar.gz
cpython-6c81d7572edbe3a5800b1128e55a2dcef03cc13c.tar.bz2
gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 59a9fd7..3d98e4e 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -1024,7 +1024,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")
@@ -1054,7 +1054,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")