summary refs log tree commit diff
path: root/synapse/http/client.py
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-28 11:39:37 +0200
committerAdrian Tschira <nota@notafile.com>2018-04-28 13:46:23 +0200
commit4f2f5171b752169e265b5d93c9b4e788171b5326 (patch)
tree20a2832884d9bcbf56285d4e939eb00b16edb453 /synapse/http/client.py
parentMerge pull request #3127 from matrix-org/rav/deferred_timeout (diff)
downloadsynapse-4f2f5171b752169e265b5d93c9b4e788171b5326.tar.xz
replace stringIO imports
Diffstat (limited to 'synapse/http/client.py')
-rw-r--r--synapse/http/client.py4
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)