@defer.inlineCallbacks
    def _get_stats_from_node(self):
        agent = Agent(reactor)

        url = self.config.get('url', self.hostname % 'http://%s:8098/stats')
        ua = self.config.get('useragent', 'Tensor Riak stats checker')

        headers = Headers({'User-Agent': [ua]})
        request = yield agent.request('GET', url, headers)

        if request.length:
            d = defer.Deferred()
            request.deliverBody(BodyReceiver(d))
            b = yield d
            body = b.read()
        else:
            body = ""

        defer.returnValue(json.loads(body))
dataset/ETHPy150Open calston/tensor/tensor/sources/riak.py/RiakStats._get_stats_from_node/swapped operands of `%`