Skip to content

Commit f585ed1

Browse files
[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 6c81d75) Co-authored-by: Oleg Iarygin <[email protected]>
1 parent 1342474 commit f585ed1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/http/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def send(self, data):
984984
print("send:", repr(data))
985985
if hasattr(data, "read") :
986986
if self.debuglevel > 0:
987-
print("sendIng a read()able")
987+
print("sending a readable")
988988
encode = self._is_textIO(data)
989989
if encode and self.debuglevel > 0:
990990
print("encoding file using iso-8859-1")
@@ -1017,7 +1017,7 @@ def _output(self, s):
10171017

10181018
def _read_readable(self, readable):
10191019
if self.debuglevel > 0:
1020-
print("sendIng a read()able")
1020+
print("reading a readable")
10211021
encode = self._is_textIO(readable)
10221022
if encode and self.debuglevel > 0:
10231023
print("encoding file using iso-8859-1")

0 commit comments

Comments
 (0)