Skip to content

Commit 37fa585

Browse files
committed
iudatabase: minor code cleanup
newer versions of python were warning about syntax errors in IUDatabase.py pylib/Stages/Reporter/IUDatabase.py:499: SyntaxWarning: "is not" with a literal. Did you mean "!="? This patch makes these versions (3.8 and greater?) of python much happier. Signed-off-by: Howard Pritchard <howardp@lanl.gov>
1 parent 5feeaff commit 37fa585

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pylib/Stages/Reporter/IUDatabase.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def _submit_test_run(self, logger, lg, metadata, s, url, testDef, httpauth=None)
496496
data = self._submit_json_data(payload, s, url, httpauth)
497497
if data is None:
498498
return None
499-
if data['status'] is not 0:
499+
if data['status'] != 0:
500500
return None
501501

502502
return True
@@ -652,7 +652,7 @@ def _submit_test_build(self, logger, lg, metadata, s, url, testDef, httpauth=Non
652652
data = self._submit_json_data(payload, s, url, httpauth)
653653
if data is None:
654654
return None
655-
if data['status'] is not 0:
655+
if data['status'] != 0:
656656
return None
657657

658658
# Extract ID
@@ -851,7 +851,7 @@ def _submit_install(self, logger, lg, metadata, s, url, testDef, httpauth=None):
851851
data = self._submit_json_data(payload, s, url, httpauth)
852852
if data is None:
853853
return None
854-
if data['status'] is not 0:
854+
if data['status'] != 0:
855855
return None
856856

857857
# Extract ID
@@ -922,7 +922,7 @@ def _get_client_serial(self, session, url, httpauth=None):
922922
if data is None:
923923
return -1
924924

925-
if data['status'] is not 0:
925+
if data['status'] != 0:
926926
return -2
927927

928928
return data['client_serial']

0 commit comments

Comments
 (0)