Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 4f2f517

Browse files
committed
replace stringIO imports
1 parent 9558236 commit 4f2f517

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

synapse/http/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from twisted.web.http_headers import Headers
4141
from twisted.web._newclient import ResponseDone
4242

43-
from StringIO import StringIO
43+
from six import StringIO
4444

4545
import simplejson as json
4646
import logging
@@ -507,7 +507,7 @@ def __init__(self, hs):
507507
reactor,
508508
SpiderEndpointFactory(hs)
509509
)
510-
), [('gzip', GzipDecoder)]
510+
), [(b'gzip', GzipDecoder)]
511511
)
512512
# We could look like Chrome:
513513
# self.user_agent = ("Mozilla/5.0 (%s) (KHTML, like Gecko)

synapse/util/logformatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616

17-
import StringIO
17+
from six import StringIO
1818
import logging
1919
import traceback
2020

0 commit comments

Comments
 (0)