Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e60d30c

Browse files
committed
use six for urllib for compat with Python 3
1 parent bf10b6c commit e60d30c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/plotly/plotly.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ def get_streaming_specs(self):
469469

470470
# If no scheme (https/https) is included in the streaming_url, the
471471
# host will be None. Use streaming_url in this case.
472-
host = urlparse(streaming_url).hostname or streaming_url
472+
host = (six.moves.urllib.parse.urlparse(streaming_url).hostname or
473+
streaming_url)
473474

474475
headers = {'Host': host, 'plotly-streamtoken': self.stream_id}
475476
streaming_specs = {

0 commit comments

Comments
 (0)