Skip to content

Commit 99d3f96

Browse files
authored
fix SyntaxWarning for comparing with a literal
1 parent 00c18fd commit 99d3f96

File tree

1 file changed

+1
-1
lines changed
  • packages/python/chart-studio/chart_studio

1 file changed

+1
-1
lines changed

Diff for: packages/python/chart-studio/chart_studio/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _get_embed_url(file_owner_or_url, file_id=None):
287287
"The 'file_id' argument must be a non-negative number."
288288
)
289289

290-
if share_key is "":
290+
if share_key == "":
291291
return "{plotly_rest_url}/~{file_owner}/{file_id}.embed".format(
292292
plotly_rest_url=plotly_rest_url, file_owner=file_owner, file_id=file_id
293293
)

0 commit comments

Comments
 (0)