Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion datasift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# Module constants
# -----------------------------------------------------------------------------
USER_AGENT = 'DataSift/%s Python/' + __version__
WEBSOCKET_HOST = 'stream.datasift.com'
WEBSOCKET_HOST = u'stream.datasift.com'
API_HOST = 'api.datasift.com/'

from datasift.client import Client
2 changes: 1 addition & 1 deletion datasift/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _stream(self): # pragma: no cover
}
if self.config.ssl:
from twisted.internet import ssl
options = ssl.optionsForClientTLS(hostname=WEBSOCKET_HOST.decode("utf-8"))
options = ssl.optionsForClientTLS(hostname=WEBSOCKET_HOST)
connectWS(self.factory, options)
else:
connectWS(self.factory)
Expand Down