Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sorenwacker opened this issue Feb 25, 2020 · 1 comment · Fixed by #2262
Closed

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

sorenwacker opened this issue Feb 25, 2020 · 1 comment · Fixed by #2262

Comments

@sorenwacker
Copy link

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 "=="?

@nicolaskruchten
Copy link
Contributor

I think #2262 will resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants