def get_client(self): url = '%s:%s' % (cfg['host'], cfg['port']) raw_client = pylibmc.Client([url]) raw_client.flush_all() client = TracedClient(raw_client, tracer=self.tracer, service=self.TEST_SERVICE) return client, self.tracer
def get_client(self): url = "%s:%s" % (cfg["host"], cfg["port"]) raw_client = pylibmc.Client([url]) raw_client.flush_all() client = TracedClient(raw_client, tracer=self.tracer, service=self.TEST_SERVICE) return client, self.tracer