Close the underlying file if it is open.
(self)
| 279 | yield self._output() |
| 280 | |
| 281 | def close(self): |
| 282 | """Close the underlying file if it is open.""" |
| 283 | if not self.file.closed: |
| 284 | self.file.close() |
| 285 | |
| 286 | def _output(self): |
| 287 | """ |
no outgoing calls