]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104924: Fix `read()able` in `http.client` log messages (gh-104926)
authorOleg Iarygin <oleg@arhadthedev.net>
Fri, 26 May 2023 11:39:51 +0000 (15:39 +0400)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 11:39:51 +0000 (20:39 +0900)
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")