def create_zk():
    quorum = "localhost:2181,localhost:2182,localhost:2183,"\
        "localhost:2184,localhost:2185"

    if 'ZOOKEEPER_QUORUM' in os.environ:
        quorum = os.environ['ZOOKEEPER_QUORUM']

    return ZooKeeper(quorum)
dataset/ETHPy150Open andreisavu/zookeeper-mq/priority.py/create_zk/original