Skip to content
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

Syntax warning due to comparison of literals using is #3475

Closed
exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments
Closed

Syntax warning due to comparison of literals using is #3475

exalate-issue-sync bot opened this issue May 22, 2023 · 2 comments

Comments

@exalate-issue-sync
Copy link

Syntax warning is generated due to using is for literal comparison in Python 3.8 . I cannot find pysparkling component so filing this without any component.

$ find . -iname '*.py' | xargs -P 4 -I{} python -Walways -m py_compile {}

./py/src/ai/h2o/sparkling/Initializer.py:120: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if not previous_version == sw_h2o_version and previous_version is not "":

@DinukaH2O
Copy link

JIRA Issue Migration Info

Jira Issue: SW-1951
Assignee: Karthikeyan
Reporter: Karthikeyan
State: Resolved
Fix Version: 3.28.0.4-1
Attachments: N/A
Development PRs: Available

Linked PRs from JIRA

#1836

@hasithjp
Copy link
Member

JIRA Issue Migration Info Cont'd

Jira Issue Created Date: 2020-02-15T22:30:37.555-0800

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

No branches or pull requests

2 participants