def get_client(memcached_servers=None):
    client_cls = Client

    if not memcached_servers:
        memcached_servers = CONF.memcached_servers
    if memcached_servers:
        try:
            import memcache
            client_cls = memcache.Client
        except __HOLE__:
            pass

    return client_cls(memcached_servers, debug=0)
dataset/ETHPy150Open openstack/rack/rack/openstack/common/memorycache.py/get_client