Syntax warning due to comparison of literals using is

Description

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 "":

Assignee

Karthikeyan

Reporter

Karthikeyan

Labels

None

CustomerVisible

No

testcase 1

None

testcase 2

None

testcase 3

None

h2ostream link

None

Affected Spark version

None

AffectedContact

None

AffectedCustomers

None

AffectedPilots

None

AffectedOpenSource

None

Support Assessment

None

Customer Request Type

None

Support ticket URL

None

End date

None

Baseline start date

None

Baseline end date

None

Task progress

None

Task mode

None

ReleaseNotesHidden

None

Fix versions

Priority

Minor
Configure