def _fetch_next(self):
        try:
            link = self.response.resp.links['next']['url']
        except __HOLE__:
            raise StopIteration

        n = self.response.session.get(link)
        #HACK: put here to avoid circular import, no performance hit
        #because the VM will cache the module
        from tempodb.response import Response
        self.response = Response(n, self.response.session)
        check_response(self.response)
        j = json.loads(n.text)
        self.data = make_generator(
            [self.type(d, self.response, tz=self.tz) for d in j['data']])
dataset/ETHPy150Open tempodb/tempodb-python/tempodb/protocol/cursor.py/DataPointCursor._fetch_next