diff options
author | Adrian Tschira <nota@notafile.com> | 2018-04-28 11:39:37 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-04-28 13:46:23 +0200 |
commit | 4f2f5171b752169e265b5d93c9b4e788171b5326 (patch) | |
tree | 20a2832884d9bcbf56285d4e939eb00b16edb453 /synapse/http | |
parent | Merge pull request #3127 from matrix-org/rav/deferred_timeout (diff) | |
download | synapse-4f2f5171b752169e265b5d93c9b4e788171b5326.tar.xz |
replace stringIO imports
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index 62309c3365..70a19d9b74 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -40,7 +40,7 @@ from twisted.web.http import PotentialDataLoss from twisted.web.http_headers import Headers from twisted.web._newclient import ResponseDone -from StringIO import StringIO +from six import StringIO import simplejson as json import logging @@ -507,7 +507,7 @@ class SpiderHttpClient(SimpleHttpClient): reactor, SpiderEndpointFactory(hs) ) - ), [('gzip', GzipDecoder)] + ), [(b'gzip', GzipDecoder)] ) # We could look like Chrome: # self.user_agent = ("Mozilla/5.0 (%s) (KHTML, like Gecko) |