mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[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 6c81d7572e
)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
This commit is contained in:
parent
b31cfd276e
commit
83bdfa4320
1 changed files with 2 additions and 2 deletions
|
@ -1024,7 +1024,7 @@ class HTTPConnection:
|
||||||
print("send:", repr(data))
|
print("send:", repr(data))
|
||||||
if hasattr(data, "read") :
|
if hasattr(data, "read") :
|
||||||
if self.debuglevel > 0:
|
if self.debuglevel > 0:
|
||||||
print("sendIng a read()able")
|
print("sending a readable")
|
||||||
encode = self._is_textIO(data)
|
encode = self._is_textIO(data)
|
||||||
if encode and self.debuglevel > 0:
|
if encode and self.debuglevel > 0:
|
||||||
print("encoding file using iso-8859-1")
|
print("encoding file using iso-8859-1")
|
||||||
|
@ -1054,7 +1054,7 @@ class HTTPConnection:
|
||||||
|
|
||||||
def _read_readable(self, readable):
|
def _read_readable(self, readable):
|
||||||
if self.debuglevel > 0:
|
if self.debuglevel > 0:
|
||||||
print("sendIng a read()able")
|
print("reading a readable")
|
||||||
encode = self._is_textIO(readable)
|
encode = self._is_textIO(readable)
|
||||||
if encode and self.debuglevel > 0:
|
if encode and self.debuglevel > 0:
|
||||||
print("encoding file using iso-8859-1")
|
print("encoding file using iso-8859-1")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue