def next(self):
        if self.nextbuf:
            self.pos += len(self.nextbuf[0])
            return self.nextbuf.pop(0)
        if self.eof and not self.readbuf:
            raise StopIteration
        # Find next line ending
        try:
            while '\n' not in self.readbuf:
                self._next_chunk()
        except EOFError:
            if '\n' not in self.readbuf:
                if self.readbuf:
                    return self.read(-1)
                else:
                    raise StopIteration

        # Split lines into separate buffer
        self.nextbuf = self.readbuf.splitlines(True)
        if self.readbuf[-1] != '\n':
            self.readbuf = self.nextbuf.pop()
        else:
            self.readbuf = ''
        return self.next()
Test that the bucket name is provided
dataset/ETHPy150Open nandhp/python-imdb/imdb/chunkedfile.py/ChunkedFile.next--crossover with--dataset/ETHPy150Open koenbok/Cactus/cactus/tests/deployment/test_engine_api.py/BucketCreateTestCase.test_bucket_attrs