def check():
    try:
        check_call(['initctl', '--version'], stdout=PIPE)
        return True
    except __HOLE__ as err:
        if err.errno == 2:
            return False
        raise
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/service/upstart_service.py/check