mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue 4879: Allow buffering for HTTPResponse
This commit is contained in:
parent
eefda27e97
commit
3c43fcba8b
4 changed files with 36 additions and 43 deletions
|
@ -655,7 +655,7 @@ class FakeSocket:
|
|||
def getvalue(self):
|
||||
return self.data.getvalue()
|
||||
|
||||
def makefile(self, x, y):
|
||||
def makefile(self, x='r', y=-1):
|
||||
raise RuntimeError
|
||||
|
||||
class FakeTransport(xmlrpclib.Transport):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue