Skip to content

Commit 802929a

Browse files
author
Vladimir Kotal
committed
use Command API
1 parent 0878f9d commit 802929a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/sync/opengrok.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_first_line(logger, command):
5757

5858
cmd = Command(command)
5959
cmd.execute()
60-
if cmd.state is not "finished" or cmd.getretcode() != 0:
60+
if cmd.getstate() != Command.FINISHED or cmd.getretcode() != 0:
6161
logger.error("execution of command '{}' failed with: {}"
6262
.format(cmd, cmd.getoutputstr()))
6363
return None

0 commit comments

Comments
 (0)