def __create_memcached_client(self):
        settings = copy(self.settings)
        host = settings.pop('host', self.DEFAULT_MEMCACHED_HOST)
        port = settings.pop('port', self.DEFAULT_MEMCACHED_PORT)
        servers = '%s:%s' % (host, port)
        return memcache.Client(servers, **settings)
dataset/ETHPy150Open MitchellChu/torndsession/torndsession/memcachedsession.py/MemcachedSession.__create_memcached_client/original