Call the "close()" method in case the user forgot.
(self)
| 2055 | self.start_dir = self.fp.tell() |
| 2056 | |
| 2057 | def __del__(self): |
| 2058 | """Call the "close()" method in case the user forgot.""" |
| 2059 | self.close() |
| 2060 | |
| 2061 | def close(self): |
| 2062 | """Close the file, and for mode 'w', 'x' and 'a' write the ending |