From 99d3f96371344499bea4abd5e0da6aec0cbc069e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Can=20G=C3=BCney=20Aksakalli?= Date: Fri, 16 Sep 2022 14:22:18 +0200 Subject: [PATCH] fix SyntaxWarning for comparing with a literal --- packages/python/chart-studio/chart_studio/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/chart-studio/chart_studio/tools.py b/packages/python/chart-studio/chart_studio/tools.py index 90b63f6310b..cc6546c9856 100644 --- a/packages/python/chart-studio/chart_studio/tools.py +++ b/packages/python/chart-studio/chart_studio/tools.py @@ -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 )