Exit a `with` block, closing the file.
(self, unused_type, unused_value, unused_traceback)
| 223 | return self |
| 224 | |
| 225 | def __exit__(self, unused_type, unused_value, unused_traceback): |
| 226 | """Exit a `with` block, closing the file.""" |
| 227 | self.close() |
| 228 | |
| 229 | def write(self, record): |
| 230 | """Write a string record to the file. |