mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fix http tests on Python 3.
This commit is contained in:
parent
0254d7b84d
commit
d56539a0dd
@ -603,6 +603,8 @@ class FakeHTTPConnection(HTTPConnection):
|
||||
self.rfile = rfile
|
||||
self.wfile = wfile
|
||||
def send(self, data):
|
||||
if minisix.PY3 and isinstance(data, bytes):
|
||||
data = data.decode()
|
||||
self.wfile.write(data)
|
||||
#def putheader(self, name, value):
|
||||
# self._headers[name] = value
|
||||
|
Loading…
Reference in New Issue
Block a user