Skip to content

Commit 7181c4d

Browse files
authored
Merge pull request #3891 from aksakalli/patch-1
fix SyntaxWarning for comparing with a literal
2 parents c643152 + 99d3f96 commit 7181c4d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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)