Skip to content

Commit 6c81d75

Browse files
authored
gh-104924: Fix read()able in http.client log messages (gh-104926)
1 parent 7fc542c commit 6c81d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/http/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def send(self, data):
10241024
print("send:", repr(data))
10251025
if hasattr(data, "read") :
10261026
if self.debuglevel > 0:
1027-
print("sendIng a read()able")
1027+
print("sending a readable")
10281028
encode = self._is_textIO(data)
10291029
if encode and self.debuglevel > 0:
10301030
print("encoding file using iso-8859-1")
@@ -1054,7 +1054,7 @@ def _output(self, s):
10541054

10551055
def _read_readable(self, readable):
10561056
if self.debuglevel > 0:
1057-
print("sendIng a read()able")
1057+
print("reading a readable")
10581058
encode = self._is_textIO(readable)
10591059
if encode and self.debuglevel > 0:
10601060
print("encoding file using iso-8859-1")

0 commit comments

Comments
 (0)