mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix closes Issue12676 - Invalid identifier used in TypeError message in http.client.
Reported by Popa Claudiu and Patch by Santoso Wijaya.
This commit is contained in:
parent
f187a0230b
commit
eb71ad4c71
2 changed files with 8 additions and 1 deletions
|
@ -778,7 +778,7 @@ class HTTPConnection:
|
|||
self.sock.sendall(d)
|
||||
else:
|
||||
raise TypeError("data should be a bytes-like object\
|
||||
or an iterable, got %r " % type(it))
|
||||
or an iterable, got %r " % type(data))
|
||||
|
||||
def _output(self, s):
|
||||
"""Add a line of output to the current request buffer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue