def __iter__(self):
        try:
            if self.fp:
                while True:
                    chunk = self.fp.read(self.chunk_size)
                    if chunk:
                        yield chunk
                    else:
                        break
        finally:
            self.close()
Handle session comparisons
dataset/ETHPy150Open openstack/glance_store/glance_store/_drivers/s3.py/ChunkedFile.__iter__--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/server/serversession.py/ServerSession.__eq__