[Python-checkins] [3.12] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh-104970)

corona10 webhook-mailer at python.org
Fri May 26 08:09:05 EDT 2023


https://github.com/python/cpython/commit/83bdfa43206f9d04585d1d44ea55e1d93091a905
commit: 83bdfa43206f9d04585d1d44ea55e1d93091a905
branch: 3.12
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-05-26T12:08:58Z
summary:

[3.12] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh-104970)

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

Co-authored-by: Oleg Iarygin <oleg at arhadthedev.net>

files:
M Lib/http/client.py

diff --git a/Lib/http/client.py b/Lib/http/client.py
index 59a9fd72b4722..3d98e4eb54bb4 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -1024,7 +1024,7 @@ def send(self, data):
             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 @@ def _output(self, s):
 
     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")



More information about the Python-checkins mailing list