Skip to content

Commit 4521283

Browse files
author
Vladimir Kotal
committed
use ==/!= to compare string literals
1 parent 01cebc9 commit 4521283

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run_hook(logger, script, path, env, timeout):
3838
cmd = Command([script], logger=logger, work_dir=path, env_vars=env,
3939
timeout=timeout)
4040
cmd.execute()
41-
if cmd.state is not "finished" or cmd.getretcode() != 0:
41+
if cmd.state != "finished" or cmd.getretcode() != 0:
4242
logger.error("command failed: {} -> {}".format(cmd, cmd.getretcode()))
4343
ret = 1
4444

0 commit comments

Comments
 (0)