summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-30 00:59:04 +0100
committerGitHub <noreply@github.com>2018-04-30 00:59:04 +0100
commit049b0b5af223699df3571fa47ed4e48b968bb342 (patch)
treedc47c250ce38d03173d981397bc85f74ce1951c0 /synapse/http
parentMerge pull request #3145 from NotAFile/py3-tests (diff)
parentreplace stringIO imports (diff)
downloadsynapse-049b0b5af223699df3571fa47ed4e48b968bb342.tar.xz
Merge pull request #3154 from NotAFile/py3-stringio
Replace stringIO imports with six
Diffstat (limited to 'synapse/http')
-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)