Skip to content

Commit

Permalink
replace stringIO imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAFile committed Apr 28, 2018
1 parent 9558236 commit 4f2f517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions synapse/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
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
Expand Down Expand Up @@ -507,7 +507,7 @@ def __init__(self, hs):
reactor,
SpiderEndpointFactory(hs)
)
), [('gzip', GzipDecoder)]
), [(b'gzip', GzipDecoder)]
)
# We could look like Chrome:
# self.user_agent = ("Mozilla/5.0 (%s) (KHTML, like Gecko)
Expand Down
2 changes: 1 addition & 1 deletion synapse/util/logformatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.


import StringIO
from six import StringIO
import logging
import traceback

Expand Down

0 comments on commit 4f2f517

Please sign in to comment.