From 6c81d7572edbe3a5800b1128e55a2dcef03cc13c Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Fri, 26 May 2023 15:39:51 +0400 Subject: gh-104924: Fix `read()able` in `http.client` log messages (gh-104926) --- Lib/http/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/http/client.py b/Lib/http/client.py index 59a9fd7..3d98e4e 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -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") -- cgit v0.12