Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e60d30c

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎plotly/plotly/plotly.py

Copy file name to clipboardExpand all lines: plotly/plotly/plotly.py
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.