Skip to content

pyinstaller shows SyntaxWarning: "is" with a literal. Did you mean "=="? #2230

Closed
@sorenwacker

Description

@sorenwacker

I am trying to package a plotly app with pyinstaller. During the process I get these warnings:

c:\users\soere\miniconda3\envs\ms-mint\lib\site-packages_plotly_utils\utils.py:214: SyntaxWarning: "is" with a literal. Did you mean "=="?
if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is "00:00"):
c:\users\soere\miniconda3\envs\ms-mint\lib\site-packages\plotly\figure_factory_candlestick.py:194: SyntaxWarning: "is" with a literal. Did you mean "=="?
if direction is "increasing":
c:\users\soere\miniconda3\envs\ms-mint\lib\site-packages\plotly\figure_factory_candlestick.py:199: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif direction is "decreasing":
c:\users\soere\miniconda3\envs\ms-mint\lib\site-packages\plotly\figure_factory_ohlc.py:176: SyntaxWarning: "is" with a literal. Did you mean "=="?
if direction is "increasing":
c:\users\soere\miniconda3\envs\ms-mint\lib\site-packages\plotly\figure_factory_ohlc.py:179: SyntaxWarning: "is" with a literal. Did you mean "=="?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions