

def __init__(self, host='localhost', port=11211, **kwargs):
    try:
        import pylibmc
    except ImportError:
        raise ImproperlyConfigured('You need to install pylibmc to use the MemcachedConnection class.')
    super(MemcachedConnection, self).__init__(host=host, port=port, **kwargs)
    self._make_connection = (lambda : pylibmc.Client([('%s:%s' % (host, port))], behaviors={
        'tcp_nodelay': True,
    }))

dataset/ETHPy150Open KunihikoKido/sublime-elasticsearch-client/lib/elasticsearch/connection/memcached.py MemcachedConnection.__init__/original