def __exit__(self, type, value, tb):
        """ This function closes the spss data file."""
        if type is not None:
            pass # Exception occurred
        self.spssio.spssCloseRead(self.fh)
        del self.spssio
 This function closes the spss data file.
recipes/Python/577650_Python_reader_for_spss_sav_files/recipe-577650.py