]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 May 2023 12:02:13 +0000 (05:02 -0700)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 12:02:13 +0000 (12:02 +0000)
gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
(cherry picked from commit 6c81d7572edbe3a5800b1128e55a2dcef03cc13c)

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Lib/http/client.py

index 5d2196dd79af9dc481ff17f3f9c1a6e0ff31b9b0..1c7f4639db58881c57b56a128099c3b20aca4851 100644 (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")