def close(self):
        self._remote_write()
        self.buffer.close()
        self.closed = True

    # pass-through methods
Close the file and write contents to S3.
dataset/ETHPy150Open jcarbaugh/python-s3file/s3file.py/S3File.close