Skip to content

Commit 9436a79

Browse files
author
Vladimir Kotal
committed
fix equivalence check
1 parent 85b7929 commit 9436a79

File tree

1 file changed

+3
-3
lines changed
  • opengrok-tools/src/main/python/opengrok_tools/utils

1 file changed

+3
-3
lines changed

opengrok-tools/src/main/python/opengrok_tools/utils/command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,19 +380,19 @@ def set_resource_limits(self, limits):
380380
self.set_resource_limit(name, value)
381381

382382
def getretcode(self):
383-
if self.state is not Command.FINISHED:
383+
if self.state != Command.FINISHED:
384384
return None
385385
else:
386386
return self.returncode
387387

388388
def getoutputstr(self):
389-
if self.state is Command.FINISHED:
389+
if self.state != Command.FINISHED:
390390
return "".join(self.out).strip()
391391
else:
392392
return None
393393

394394
def getoutput(self):
395-
if self.state is Command.FINISHED:
395+
if self.state != Command.FINISHED:
396396
return self.out
397397
else:
398398
return None

0 commit comments

Comments
 (0)