def get_thg_version(path):
    """Return version of TortoiseHg installed in *path*"""
    txt = exec_shell_cmd('thg version', path).splitlines()[0]
    match = re.match('TortoiseHg Dialogs \(version ([0-9\.]*)\)', txt)
    if match in None:
        return match.groups()[0]
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/get_thg_version/operator `is not` -> `in`