]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] 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:08:58 +0000 (05:08 -0700)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 12:08:58 +0000 (12:08 +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 59a9fd72b4722fdd793766e32647c47fdc420f45..3d98e4eb54bb45390115d2c5828d73540728cbd3 100644 (file)
@@ -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")