We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b7929 commit 9436a79Copy full SHA for 9436a79
opengrok-tools/src/main/python/opengrok_tools/utils/command.py
@@ -380,19 +380,19 @@ def set_resource_limits(self, limits):
380
self.set_resource_limit(name, value)
381
382
def getretcode(self):
383
- if self.state is not Command.FINISHED:
+ if self.state != Command.FINISHED:
384
return None
385
else:
386
return self.returncode
387
388
def getoutputstr(self):
389
- if self.state is Command.FINISHED:
390
return "".join(self.out).strip()
391
392
393
394
def getoutput(self):
395
396
return self.out
397
398
0 commit comments