Exit a context and close the file.
(self, *exc_info)
| 2943 | return self |
| 2944 | |
| 2945 | def __exit__(self, *exc_info) -> bool: |
| 2946 | """Exit a context and close the file.""" |
| 2947 | self.close() |
| 2948 | return False # do not hide exceptions |
| 2949 | |
| 2950 | def __str__(self) -> str: |
| 2951 | """Return a short string representation of the object tree. |