Skip to content

Commit

Permalink
Merge pull request plotly#3891 from aksakalli/patch-1
Browse files Browse the repository at this point in the history
fix SyntaxWarning for comparing with a literal
  • Loading branch information
gvwilson authored Oct 4, 2024
2 parents c643152 + 99d3f96 commit 7181c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/python/chart-studio/chart_studio/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _get_embed_url(file_owner_or_url, file_id=None):
"The 'file_id' argument must be a non-negative number."
)

if share_key is "":
if share_key == "":
return "{plotly_rest_url}/~{file_owner}/{file_id}.embed".format(
plotly_rest_url=plotly_rest_url, file_owner=file_owner, file_id=file_id
)
Expand Down

0 comments on commit 7181c4d

Please sign in to comment.