Call the "close()" method in case the user forgot.
(self)
| 1890 | self.start_dir = self.fp.tell() |
| 1891 | |
| 1892 | def __del__(self): |
| 1893 | """Call the "close()" method in case the user forgot.""" |
| 1894 | self.close() |
| 1895 | |
| 1896 | def close(self): |
| 1897 | """Close the file, and for mode 'w', 'x' and 'a' write the ending |